<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0052)http://blog.csdn.net/hudashi/article/details/8333349 -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/main.js"></script>   
    
     
    <script type="text/javascript" async="" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ga.js"></script><script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/tracking.js" charset="utf-8"></script>  

    <script type="text/javascript">
        var protocol = window.location.protocol;
        document.write('<script type="text/javascript" src="' + protocol + '//csdnimg.cn/pubfooter/js/repoAddr2.js?v=' + Math.random() + '"></' + 'script>');
    </script><script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/repoAddr2.js"></script>

     <script id="allmobilize" charset="utf-8" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/allmobilize.min.js"></script><style type="text/css"></style>
 <meta http-equiv="Cache-Control" content="no-siteapp"><link rel="alternate" media="handheld" href="http://blog.csdn.net/hudashi/article/details/8333349#">

    <title>Android Lint简介 - Robin Hu的专栏
        - 博客频道 - CSDN.NET</title>
    
    <meta name="description" content="本人博客原文英文原文：http://tools.android.com/tips/lint 参照文章：http://blog.csdn.net/thl789/article/details/8037473一、简介Android Lint是SDK Tools 16 (ADT 16)之后才引入的工具，通过它对Android工程源代码进行扫描和检查，可发现潜在的问题，以便程序员及">
    <script src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/jquery.js" type="text/javascript"></script>
    <script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ad.js"></script>
        <!--new top-->
       
        <link rel="stylesheet" href="http://static.csdn.net/public/common/toolbar/css/index.css">
        <!--new top-->

    <link rel="Stylesheet" type="text/css" href="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/style.css">
    <link id="RSSLink" title="RSS" type="application/rss+xml" rel="alternate" href="http://blog.csdn.net/hudashi/rss/list">
    <link rel="shortcut icon" href="http://c.csdnimg.cn/public/favicon.ico">
    <link type="text/css" rel="stylesheet" href="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/default.css">
 


<script src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/share.js"></script><style type="text/css">.MathJax_Hover_Frame {border-radius: .25em; -webkit-border-radius: .25em; -moz-border-radius: .25em; -khtml-border-radius: .25em; box-shadow: 0px 0px 15px #83A; -webkit-box-shadow: 0px 0px 15px #83A; -moz-box-shadow: 0px 0px 15px #83A; -khtml-box-shadow: 0px 0px 15px #83A; border: 1px solid #A6D ! important; display: inline-block; position: absolute}
.MathJax_Hover_Arrow {position: absolute; width: 15px; height: 11px; cursor: pointer}
</style><style type="text/css">#MathJax_About {position: fixed; left: 50%; width: auto; text-align: center; border: 3px outset; padding: 1em 2em; background-color: #DDDDDD; color: black; cursor: default; font-family: message-box; font-size: 120%; font-style: normal; text-indent: 0; text-transform: none; line-height: normal; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; z-index: 201; border-radius: 15px; -webkit-border-radius: 15px; -moz-border-radius: 15px; -khtml-border-radius: 15px; box-shadow: 0px 10px 20px #808080; -webkit-box-shadow: 0px 10px 20px #808080; -moz-box-shadow: 0px 10px 20px #808080; -khtml-box-shadow: 0px 10px 20px #808080; filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')}
.MathJax_Menu {position: absolute; background-color: white; color: black; width: auto; padding: 5px 0px; border: 1px solid #CCCCCC; margin: 0; cursor: default; font: menu; text-align: left; text-indent: 0; text-transform: none; line-height: normal; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; z-index: 201; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; -khtml-border-radius: 5px; box-shadow: 0px 10px 20px #808080; -webkit-box-shadow: 0px 10px 20px #808080; -moz-box-shadow: 0px 10px 20px #808080; -khtml-box-shadow: 0px 10px 20px #808080; filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')}
.MathJax_MenuItem {padding: 1px 2em; background: transparent}
.MathJax_MenuArrow {position: absolute; right: .5em; color: #666666}
.MathJax_MenuActive .MathJax_MenuArrow {color: white}
.MathJax_MenuArrow.RTL {left: .5em; right: auto}
.MathJax_MenuCheck {position: absolute; left: .7em}
.MathJax_MenuCheck.RTL {right: .7em; left: auto}
.MathJax_MenuRadioCheck {position: absolute; left: .7em}
.MathJax_MenuRadioCheck.RTL {right: .7em; left: auto}
.MathJax_MenuLabel {padding: 1px 2em 3px 1.33em; font-style: italic}
.MathJax_MenuRule {border-top: 1px solid #DDDDDD; margin: 4px 3px}
.MathJax_MenuDisabled {color: GrayText}
.MathJax_MenuActive {background-color: #606872; color: white}
.MathJax_Menu_Close {position: absolute; width: 31px; height: 31px; top: -15px; left: -15px}
</style><style type="text/css">#MathJax_Zoom {position: absolute; background-color: #F0F0F0; overflow: auto; display: block; z-index: 301; padding: .5em; border: 1px solid black; margin: 0; font-weight: normal; font-style: normal; text-align: left; text-indent: 0; text-transform: none; line-height: normal; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; box-shadow: 5px 5px 15px #AAAAAA; -webkit-box-shadow: 5px 5px 15px #AAAAAA; -moz-box-shadow: 5px 5px 15px #AAAAAA; -khtml-box-shadow: 5px 5px 15px #AAAAAA; filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')}
#MathJax_ZoomOverlay {position: absolute; left: 0; top: 0; z-index: 300; display: inline-block; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background-color: white; opacity: 0; filter: alpha(opacity=0)}
#MathJax_ZoomFrame {position: relative; display: inline-block; height: 0; width: 0}
#MathJax_ZoomEventTrap {position: absolute; left: 0; top: 0; z-index: 302; display: inline-block; border: 0; padding: 0; margin: 0; background-color: white; opacity: 0; filter: alpha(opacity=0)}
</style><style type="text/css">.MathJax_Preview {color: #888}
#MathJax_Message {position: fixed; left: 1em; bottom: 1.5em; background-color: #E6E6E6; border: 1px solid #959595; margin: 0px; padding: 2px 8px; z-index: 102; color: black; font-size: 80%; width: auto; white-space: nowrap}
#MathJax_MSIE_Frame {position: absolute; top: 0; left: 0; width: 0px; z-index: 101; border: 0px; margin: 0px; padding: 0px}
.MathJax_Error {color: #CC0000; font-style: italic}
</style><link rel="stylesheet" type="text/css" href="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/job_reco.css"><link href="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/bdsstyle.css" rel="stylesheet" type="text/css"><link rel="stylesheet" type="text/css" href="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/job_reco.css"><script type="text/javascript" charset="utf-8" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/main(1).js"></script><script charset="utf-8" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/lightapp.js" data-appid="3629560" async="" name="baidu-tc-cerfication"></script><link type="text/css" rel="stylesheet" href="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/style(1).css"><script src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/logger.js"></script><script src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/get" async="" type="text/javascript" charset="utf-8"></script><script type="text/javascript" charset="utf-8" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/helper-utils-moplus-monitor_7cf38e1.js" _md_="_anymoore_http://apps.bdimg.com/cloudaapi/pkg/helper-utils-moplus-monitor_7cf38e1.js"></script><link rel="stylesheet" href="http://bdimg.share.baidu.com/static/api/css/share_style0_16.css?v=8105b07e.css"><script type="text/javascript" charset="utf-8" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/push-smartBar_095153f.js" _md_="_anymoore_http://apps.bdimg.com/cloudaapi/pkg/push-smartBar_095153f.js"></script><script type="text/javascript" charset="utf-8" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/app-socialshare_1c3f0db.js" _md_="_anymoore_http://apps.bdimg.com/cloudaapi/pkg/app-socialshare_1c3f0db.js"></script><script src="http://127.0.0.1:7777/weakBindLight?apikey=zGhG9os6hVZxp2KLek3cwIuM&nonce=jLPbjxROpGaAzIeQ0tpI&csrftoken=b99ec0852caec1f16608a9b76aa13040&channel=clouda&callback=cloudaPushServiceWeakBindLight"></script><script type="text/javascript" charset="utf-8" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/account-pay_aef1a13.js" _md_="_anymoore_http://apps.bdimg.com/cloudaapi/pkg/account-pay_aef1a13.js"></script></head>
<body class=" hPC" style=""><iframe frameborder="0" style="display: none;"></iframe><div id="MathJax_Message" style="display: none;"></div>
    
   
      <!--new top-->
    <script id="toolbar-tpl-scriptId" fixed="true" prod="blog" skin="black" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/html.js" type="text/javascript"></script><div class="csdn-toolbar csdn-toolbar-skin-black ">        <div class="container row center-block ">          <div class="col-md-3 pull-left logo clearfix"><a href="http://www.csdn.net/?ref=toolbar" title="CSDN首页" target="_blank" class="icon"></a><a title="频道首页" href="http://blog.csdn.net/?ref=toolbar_logo" target="_blank" class="img blog-icon"></a></div>          <div class="pull-right login-wrap unlogin">            <ul class="btns">              <li class="loginlink"><a href="https://passport.csdn.net/account/login?ref=toolbar" target="_top">登录&nbsp;</a>|<a target="_top" href="https://passport.csdn.net/account/register?ref=toolbar">&nbsp;注册</a></li>              <li class="search">                <div class="icon on-search-icon">                  <div class="wrap">                    <div class="curr-icon-wrap">                      <div class="curr-icon"></div>                    </div>                    <form action="http://so.csdn.net/search" method="get" target="_blank">                      <input type="hidden" value="toolbar" name="ref" accesskey="2">                      <div class="border">                        <input placeholder="搜索" type="text" value="" name="q" accesskey="2"><span class="icon-enter-sm"></span>                      </div>                    </form>                  </div>                </div>              </li>              <li class="favor">                <div class="icon on-favor-icon">                  <div class="wrap">                    <div class="curr-icon-wrap">                      <div class="curr-icon"></div>                    </div>                    <div style="display:none;" class="favor-success"><span class="msg">收藏成功</span>                      <div class="btns"><span class="btn btn-primary ok">确定</span></div>                    </div>                    <div style="display:none;" class="favor-failed"><span class="icon-danger-lg"></span><span class="msg">收藏失败，请重新收藏</span>                      <div class="btns"><span class="btn btn-primary ok">确定</span></div>                    </div>                    <form role="form" class="form-horizontal favor-form">                      <div class="form-group">                        <div class="clearfix">                          <label for="input-title" class="col-sm-2 control-label">标题</label>                          <div class="col-sm-10">                            <input id="inputTitle" type="text" placeholder="" class="title form-control">                          </div>                        </div>                        <div class="alert alert-danger"><strong></strong>标题不能为空</div>                      </div>                      <div class="form-group">                        <label for="input-url" class="col-sm-2 control-label">网址</label>                        <div class="col-sm-10">                          <input id="input-url" type="text" placeholder="" class="url form-control">                        </div>                      </div>                      <div class="form-group">                        <label for="input-tag" class="col-sm-2 tag control-label">标签</label>                        <div class="col-sm-10">                          <input id="input-tag" type="text" class="form-control tag">                        </div>                      </div>                      <div class="form-group">                        <label for="input-description" class="description col-sm-2 control-label">摘要</label>                        <div class="col-sm-10">                          <textarea id="input-description" class="form-control description"></textarea>                        </div>                      </div>                      <div class="form-group">                        <div class="col-sm-offset-2 col-sm-10 ft">                          <div class="col-sm-4 pull-left">                            <div class="checkbox">                              <label>                                <input type="checkbox" name="share" checked="checked" class="share">公开                              </label>                            </div>                          </div>                          <div class="col-sm-8 pull-right favor-btns">                            <button type="button" class="cancel btn btn-default">取消</button>                            <button type="submit" class="submit btn btn-primary">收藏</button>                          </div>                        </div>                      </div>                    </form>                  </div>                </div>              </li>              <li class="notify">                <div style="display:none" class="number"></div>                <div style="display:none" class="icon-hasnotes-sm"></div>                <div id="header_notice_num"></div>                <div class="icon on-notify-icon">                  <div class="wrap">                    <div class="curr-icon-wrap">                      <div class="curr-icon"></div>                    </div>                    <div id="note1" class="csdn_note">                      <div class="box"></div>                    <iframe src="about:block" frameborder="0" allowtransparency="true" style="z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;background:transparent"></iframe></div>                  </div>                </div>              </li>              <li class="ugc">                <div class="icon on-ugc-icon">                  <div class="wrap clearfix">                    <div class="curr-icon-wrap">                      <div class="curr-icon"></div>                    </div>                    <dl>                      <dt><a href="http://geek.csdn.net/news/expert?ref=toolbar" target="_blank" class="p-news clearfix" style="display:none;"><em class="icon"></em><span>分享资讯</span></a></dt>                      <dt><a href="http://u.download.csdn.net/upload?ref=toolbar" target="_blank" class="p-doc clearfix"><em class="icon"></em><span>传PPT/文档</span></a></dt>                      <dt><a href="http://bbs.csdn.net/topics/new?ref=toolbar" target="_blank" class="p-ask clearfix"><em class="icon"></em><span>提问题</span></a></dt>                      <dt><a href="http://write.blog.csdn.net/postedit?ref=toolbar" target="_blank" class="p-blog clearfix"><em class="icon"></em><span>写博客</span></a></dt>                      <dt><a href="http://u.download.csdn.net/upload?ref=toolbar" target="_blank" class="p-src clearfix"><em class="icon"></em><span>传资源</span></a></dt>                      <dt><a href="https://code.csdn.net/projects/new?ref=toolbar" target="_blank" class="c-obj clearfix"><em class="icon"></em><span>创建项目</span></a></dt>                      <dt><a href="https://code.csdn.net/snippets/new?ref=toolbar" target="_blank" class="c-code clearfix"><em class="icon"></em><span>创建代码片</span></a></dt>                    </dl>                  </div>                </div>              </li>              <li class="profile">                <div class="icon on-profile-icon"><img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/100x100.jpg" class="curr-icon-img">                  <div class="wrap clearfix">                    <div class="curr-icon-wrap">                      <div class="curr-icon"></div>                    </div>                    <div class="bd">                      <dl class="clearfix">                        <dt class="pull-left img"><a target="_blank" href="http://my.csdn.net/?ref=toolbar" class="avatar"><img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/100x100.jpg"></a></dt>                        <dd class="info" style="border: none;"><a target="_blank" href="http://my.csdn.net/?ref=toolbar" class="nickname"></a><a class="set-nick" href="https://passport.csdn.net/account/profile">设置昵称<span class="write-icon"></span></a><span class="dec"><a class="fill-dec" href="http://my.csdn.net/" target="_blank">编辑自我介绍，让更多人了解你<span class="write-icon"></span></a></span></dd>                      </dl>                    </div>                    <div class="ft clearfix"><a target="_blank" href="http://my.csdn.net/my/account/changepwd?ref=toolbar" class="pull-left"><span class="icon-cog"></span>帐号设置</a><a href="https://passport.csdn.net/account/logout?ref=toolbar" target="_top" class="pull-left" style="margin-left:132px; width:18px; height:27px; white-space:nowrap; overflow:hidden;"><span class="icon-signout"></span><span class="out">退出</span></a></div>                  </div>                </div>              </li>              <li class="apps">                <div id="chasnew123" class="hasnew" style="display: none;"></div>                <div id="cappsarea123" class="icon on-apps-icon">                  <div class="wrap clearfix">                    <div class="curr-icon-wrap">                      <div class="curr-icon"></div>                    </div>                  <div class="detail">                    <dl>                      <dt>                        <h5>社区</h5>                      </dt>                      <dd> <a href="http://blog.csdn.net/?ref=toolbar" target="_blank">博客</a></dd>                      <dd> <a href="http://bbs.csdn.net/?ref=toolbar" target="_blank">论坛</a></dd>                      <dd> <a href="http://download.csdn.net/?ref=toolbar" target="_blank">下载</a></dd>                      <dd><a href="http://ask.csdn.net/?ref=toolbar" target="_blank">技术问答</a></dd>                      <dd><a href="http://geek.csdn.net/?ref=toolbar" target="_blank">极客头条</a></dd>                      <dd> <a href="http://hero.csdn.net/?ref=toolbar" target="_blank">英雄会</a></dd>                    </dl>                  </div>                  <div class="detail">                    <dl>                      <dt>                        <h5>服务</h5>                      </dt>                      <dd> <a href="http://job.csdn.net/?ref=toolbar" target="_blank">JOB<img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/new.gif" style="display: none; margin-top: -26px; width: 23px;"></a></dd>                      <dd> <a href="http://edu.csdn.net/?ref=toolbar" target="_blank">学院<img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/new.gif" style="display: none; margin-top: -26px; width: 23px;"></a></dd>                      <dd> <a href="https://code.csdn.net/?ref=toolbar" target="_blank">CODE</a></dd>                      <dd> <a href="http://huiyi.csdn.net/?ref=toolbar" target="_blank">活动</a></dd>                      <dd> <a href="http://www.csto.com/?ref=toolbar" target="_blank">CSTO</a></dd>                      <dd> <a href="http://mall.csdn.net/?ref=toolbar" target="_blank">C币兑换<img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/new.gif" style="display: none; margin-top: -26px; width: 23px;"></a></dd>                    </dl>                  </div>                  <div class="detail last">                    <dl>                      <dt>                        <h5>俱乐部</h5>                      </dt>                      <dd> <a href="http://cto.csdn.net/?ref=toolbar" target="_blank">CTO俱乐部</a></dd>                      <dd> <a href="http://student.csdn.net/?ref=toolbar" target="_blank">高校俱乐部</a></dd>                    </dl>                  </div>                </div>              </div>            </li>            </ul>          </div>        </div>    </div>
     <!--new top-->
    <div id="container">
        <div id="header">
    <div class="header">
        <div id="blog_title">
            <h2>
                <a href="http://blog.csdn.net/hudashi">Robin Hu的专栏</a></h2>
            <h3>Let's practice improving every day</h3>
            <div class="clear">
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
</div>
<div id="navigator">
    <div class="navigator_bg">
    </div>
    <div class="navigator">
        <ul>
            
                <li id="btnContents"><a href="http://blog.csdn.net/hudashi?viewmode=contents"><span onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_mulu&#39;])">
                    <img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ico_list.gif">目录视图</span></a></li>
                <li id="btnView"><a href="http://blog.csdn.net/hudashi?viewmode=list"><span onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_zhaiyao&#39;])">
                    <img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ico_summary.gif">摘要视图</span></a></li>
                <li id="btnRss"><a href="http://blog.csdn.net/hudashi/rss/list"><span onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_RSS&#39;])">
                    <img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ico_rss.gif">订阅</span></a></li>                

            </ul>
    </div>
</div>
<script type="text/javascript">
    var username = "hudashi";
    var _blogger = username;
    var blog_address = "http://blog.csdn.net/hudashi";
    var static_host = "http://static.blog.csdn.net";
    var currentUserName = "";  
</script>

        <div id="body">
            <div id="main">
                <div class="main">
                        <div class="ad_class">
<div class="notice tracking-ad" data-mod="popu_3"> 

<a href="http://static.blog.csdn.net/bole/index.html" target="_blank"><font color="red">
CSDN博乐 举荐之美</font></a>
&nbsp;&nbsp;&nbsp;
  

<a href="http://huiyi.csdn.net/activity/product/goods_list?project_id=2196" target="_blank">
<font color="blue">博主线下趴：程序人生，不止一面 
</font></a>
&nbsp;&nbsp;&nbsp;

<a href="http://blog.csdn.net/blogdevteam/article/details/47026325" target="_blank">
<font color="red">【面向专家】极客头条使用体验征文 
</font></a>
&nbsp;&nbsp;&nbsp;
<a href="http://huiyi.csdn.net/activity/product/goods_list?project_id=2175;identy_id=1491" target="_blank">
<font color="blue">活用UML—打造软件设计高手
</font></a>
&nbsp;&nbsp;&nbsp;</div>                        </div>
                        

  
<link href="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/comment1.css" type="text/css" rel="stylesheet">
<link href="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/style1.css" type="text/css" rel="stylesheet">
<script language="JavaScript" type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/jquery.cookie.js"></script>
<script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/main(2).js"></script>


<link rel="stylesheet" href="http://static.blog.csdn.net/public/res-min/markdown_views.css?v=1.0">

<script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/MathJax.js"></script>









  <script type="text/ecmascript">
      window.quickReplyflag = true;
    </script>
<div id="article_details" class="details">
    <div class="article_title">   
         <span class="ico ico_type_Translated"></span>


    <h1>
        <span class="link_title"><a href="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET.html">
        Android Lint简介            
        </a>
        </span>
    </h1>
</div>

    <div class="article_manage">
        <span class="link_categories">
        分类：
            <a href="http://blog.csdn.net/hudashi/article/category/926223" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_fenlei&#39;]);">Android其他</a> 
        </span>
    <span class="link_postdate">2012-12-19 20:14</span>
    <span class="link_view" title="阅读次数">17442人阅读</span>
    <span class="link_comments" title="评论次数"><a href="http://blog.csdn.net/hudashi/article/details/8333349#comments" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_pinglun&#39;])">评论</a>(2)</span>
    <span class="link_collect"><a href="javascript:void(0);" onclick="javascript:_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_shoucang&#39;]);collectArticle(&#39;Android Lint简介&#39;,&#39;8333349&#39;);return false;" title="收藏">收藏</a></span>
    <span class="link_report"><a href="http://blog.csdn.net/hudashi/article/details/8333349#report" onclick="javascript:_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_jubao&#39;]);report(8333349,2);return false;" title="举报">举报</a></span>
    
</div>

  
    
<div id="article_content" class="article_content">

<p>本人博客<a href="http://hubingforever.blog.163.com/blog/static/17104057920129249497980/">原文</a></p>
<p></p>
<div class="bct fc05 fc11 nbw-blog ztag js-fs2" style="line-height:25px; font-size:14px; word-wrap:break-word; margin:15px 0px; padding:5px 0px; overflow:hidden; font-family:Arial,Helvetica,simsun,u5b8bu4f53; background-color:rgb(245,245,245)">
英文原文：<a rel="nofollow" href="http://tools.android.com/tips/lint" style="color:rgb(245,149,19); text-decoration:initial">http://tools.android.com/tips/lint</a>&nbsp;
<div>参照文章：<a rel="nofollow" href="http://blog.csdn.net/thl789/article/details/8037473" style="color:rgb(245,149,19); text-decoration:initial">http://blog.csdn.net/thl789/article/details/8037473</a>
<div><strong><span style="font-size:14px; line-height:28px">一、简介</span></strong></div>
<div><span style="color:#ff00ff">Android Lint</span><span style="color:#003366">是SDK Tools 16 (ADT 16)之后才引入的工具，通过它对Android工程源代码进行扫描和检查，可发现潜在的问题，以便程序员及早修正这个问题。Android Lint提供了命令行方式执行，还可与IDE（如Eclipse）集成，并提供了html形式的输出报告。</span></div>
<div><span style="color:#003366">由于Android Lint在最初设计时就考虑到了independent于IDE,所以它可以很方便的与项目中的其他自动系统（配置/ Build / 测试等）集成.</span></div>
<div><span style="line-height:22px"><span style="color:#ff00ff; line-height:25px">Android Lint主</span>要用于检查以下这些错误：</span></div>
<div>
<div>1、Missing translations (and unused translations)没有翻译的文本</div>
<div>2、Layout performance problems (all the issues the old layoutopt tool used to find, and more)</div>
<div>3、Unused resources未使用的冗余资源</div>
<div>4、Inconsistent array sizes (when arrays are defined in multiple configurations)在多个配置中的数组大小不一致文件</div>
<div>5、Accessibility and internationalization problems (hardcoded strings, missing contentDescription, etc)</div>
<div>6、Icon problems (like missing densities, duplicate icons, wrong sizes, etc)</div>
<div>7、Usability problems (like not specifying an input type on a text field)</div>
<div>8、Manifest errors</div>
</div>
<div>当然<span style="line-height:22px">Android Lint</span>远远不至检查以上的错误，更多的内容请参考《<a title="阅读全文" target="_blank" href="http://hubingforever.blog.163.com/blog/static/17104057920121069261691/" style="color:rgb(245,149,19); text-decoration:initial; white-space:nowrap">Android
 Lint 检查规则列表</a><span style="color:#000000; white-space:nowrap"><a title="阅读全文" target="_blank" href="http://hubingforever.blog.163.com/blog/static/17104057920121069261691/" style="color:rgb(245,149,19); text-decoration:initial">》</a></span></div>
<div>
<div><span style="color:#003366">在Eclipse中可以在菜单Window-&gt;Preference-&gt;“</span><span style="color:#993300">Lint Eerro checking</span><span style="color:#003366">”中设置规则的检查级别，如</span><strong>图1</strong><span style="color:#003366">所示。</span></div>
<div><span style="line-height:22px"><span style="color:#003366; line-height:25px">检查级别可以是:</span></span></div>
<div><span style="line-height:22px">Default</span></div>
<div>Fatal</div>
<div>Errro</div>
<div>Waring</div>
<div>Information</div>
<div><span style="color:#800000">Ingore</span>(即不检查)</div>
<div><br>
</div>
<div><strong>图1</strong></div>
<div><img alt="Android Lint 检查规则列表 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355918974_8659.jpg" width="750" height="519" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"></div>
<div>&nbsp;</div>
<br>
</div>
<div>如果你只是想对lint的检查规则做些简单的定制，请参考《<a title="阅读全文" target="_blank" href="http://hubingforever.blog.163.com/blog/static/1710405792012102594926535/" style="color:rgb(245,149,19); text-decoration:initial; white-space:nowrap">Android Lint 检查规则的定制（基本篇）</a><span style="color:#000000; white-space:nowrap"><a title="阅读全文" target="_blank" href="http://hubingforever.blog.163.com/blog/static/1710405792012102594926535/" style="color:rgb(245,149,19); text-decoration:initial">》</a>或英文</span><a target="_blank" rel="nofollow" href="http://tools.android.com/tips/lint/suppressing-lint-warnings" style="color:rgb(245,149,19); text-decoration:initial">官方文档</a></div>
<div><span style="line-height:22px">如果你想对lint的检查规则做些高级的定制，请参考官方文档</span><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">&nbsp;</span><a rel="nofollow" href="http://tools.android.com/tips/lint/writing-a-lint-check" style="color:rgb(0,51,204); line-height:21px; text-decoration:initial; font-family:Arial,Verdana,sans-serif; font-size:13px">Writing
 New Lint Checks</a><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">&nbsp;and&nbsp;</span><a rel="nofollow" href="http://tools.android.com/tips/lint-custom-rules" style="color:rgb(0,51,204); line-height:21px; text-decoration:initial; font-family:Arial,Verdana,sans-serif; font-size:13px">Writing
 Custom Lint Rules</a><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">.</span></div>
<div><strong><span style="font-size:14px; line-height:28px">二、命令行中使用</span><span style="font-size:12px; color:#993300; line-height:23px">Lint</span></strong></div>
<div><strong>2.1、基本使用</strong></div>
<div>
<div style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
There is a command line tool in the SDK tools/ directory called&nbsp;<code style="line-height:23px; color:rgb(0,96,0)">lint</code>.</div>
<span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">If you have the SDK&nbsp;</span><code style="line-height:21px; color:rgb(0,96,0); font-size:13px">tools/</code><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">&nbsp;directory
 on your path, you can invoke it as “</span><code style="line-height:21px; color:rgb(0,96,0); font-size:13px">lint</code><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">”. Just point to a specific Android
 project directory. You can also point to a random directory, which (if it is not an Android project) will be searched recursively and all projects under that directory will be checked. (And you can also specify multiple projects separated by spaces)</span></div>
<div>在Android SDK的tools下有个叫lint.bat的文件，它就是lint的命令行工具。</div>
<div>lint命令后可以带一个或多个参数，参数之间用空格隔开，<span style="line-height:22px">参数表示的</span>是需要使用lint进行扫描的<span style="line-height:22px">Android项目的目录</span>。</div>
<div><strong>示例1</strong></div>
<div>linux命令行</div>
<div>
<pre class="prettyprint" style="padding:2px; border:1px solid rgb(136,136,136)" name="code"><p style="margin-top:0px; margin-bottom:10px; padding-top:0px; padding-bottom:0px"></p><div><span class="pln">&nbsp;lint </span><span class="pun" style="color:rgb(102,102,0)">/</span><span class="pln">src</span><span class="pun" style="color:rgb(102,102,0)">/</span><span class="pln">astrid</span><span class="pun" style="color:rgb(102,102,0)">/</span></div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">GreenDroid</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="typ" style="color:rgb(102,0,102)">GoogleAPIs</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">..</span></div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> stream</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">...</span></div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> api</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">...........................</span></div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">GDCatalog</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">.......................</span></div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">GreenDroid</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">...........................................................</span></div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> tests</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">...</span></div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> filters</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">....</span></div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> tests</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">.....</span></div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> astrid</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">....................................................................................................................................................</span></div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> simple</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">.......</span></div><div><span class="pln">api</span><span class="pun" style="color:rgb(102,102,0)">/</span><span class="pln">res</span><span class="pun" style="color:rgb(102,102,0)">/</span><span class="pln">values</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="pln">ca</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Error</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Locale</span><span class="pln"> ca </span><span class="kwd" style="color:rgb(0,0,136)">is</span><span class="pln"> missing translations </span><span class="kwd" style="color:rgb(0,0,136)">for</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> sync_SPr_bgwifi_key</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> sync_SPr_forget_key</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> sync_SPr_interval_values</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> sync_SPr_logged_in_prefix</span><span class="pun" style="color:rgb(102,102,0)">...</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">(</span><span class="lit" style="color:rgb(0,102,102)">2</span><span class="pln"> more</span><span class="pun" style="color:rgb(102,102,0)">)</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">MissingTranslation</span><span class="pun" style="color:rgb(102,102,0)">]</span></div><div><span class="pln">astrid</span><span class="pun" style="color:rgb(102,102,0)">/</span><span class="pln">res</span><span class="pun" style="color:rgb(102,102,0)">/</span><span class="pln">values</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="pln">ca</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Error</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Locale</span><span class="pln"> ca </span><span class="kwd" style="color:rgb(0,0,136)">is</span><span class="pln"> missing translations </span><span class="kwd" style="color:rgb(0,0,136)">for</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> DLG_cancel</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> DLG_dismiss</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> DLG_ok</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">EPr_deactivated</span><span class="pun" style="color:rgb(102,102,0)">...</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">(</span><span class="lit" style="color:rgb(0,102,102)">117</span><span class="pln"> more</span><span class="pun" style="color:rgb(102,102,0)">)</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">MissingTranslation</span><span class="pun" style="color:rgb(102,102,0)">]</span></div><div><span class="pln">api</span><span class="pun" style="color:rgb(102,102,0)">/</span><span class="pln">res</span><span class="pun" style="color:rgb(102,102,0)">/</span><span class="pln">values</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="pln">cs</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Error</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Locale</span><span class="pln"> cs </span><span class="kwd" style="color:rgb(0,0,136)">is</span><span class="pln"> missing translations </span><span class="kwd" style="color:rgb(0,0,136)">for</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> sync_SPr_bgwifi_key</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> sync_SPr_forget_key</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> sync_SPr_interval_values</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> sync_SPr_logged_in_prefix</span><span class="pun" style="color:rgb(102,102,0)">...</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">(</span><span class="lit" style="color:rgb(0,102,102)">2</span><span class="pln"> more</span><span class="pun" style="color:rgb(102,102,0)">)</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">MissingTranslation</span><span class="pun" style="color:rgb(102,102,0)">]</span></div><div><span class="pun" style="color:rgb(102,102,0)">(</span><span class="pln">many lines omitted</span><span class="pun" style="color:rgb(102,102,0)">)</span></div><div><span class="lit" style="color:rgb(0,102,102)">43</span><span class="pln"> errors</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> </span><span class="lit" style="color:rgb(0,102,102)">466</span><span class="pln"> warnings</span></div><p style="margin-top:0px; margin-bottom:10px; padding-top:0px; padding-bottom:0px"></p></pre>
</div>
<div><span style="line-height:22px"><span style="line-height:25px">示例2</span></span></div>
<div><span style="line-height:22px">Window命令行</span></div>
<div>
<pre class="prettyprint" style="padding:2px; border:1px solid rgb(136,136,136)" name="code"><p style="margin-top:0px; margin-bottom:10px; padding-top:0px; padding-bottom:0px"></p><div><span class="pln">C</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">\Documents </span><span class="kwd" style="color:rgb(0,0,136)">and</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Settings</span><span class="pln">\Administrator</span><span class="pun" style="color:rgb(102,102,0)">&gt;</span><span class="pln">lint D</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">\workspace\Test</span>

<span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Test</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">.........................................................................................................</span>
<span class="pun" style="color:rgb(102,102,0)">........................................................................................................................</span>
<span class="pun" style="color:rgb(102,102,0)">...................</span>
<span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Test</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">(</span><span class="typ" style="color:rgb(102,0,102)">Phase</span><span class="pln"> </span><span class="lit" style="color:rgb(0,102,102)">2</span><span class="pun" style="color:rgb(102,102,0)">):</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">......</span>
<span class="pln">res\layout\internet_image_demo</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">9</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">The</span><span class="pln"> id </span><span class="str" style="color:rgb(0,136,0)">"button1"</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">is</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">not</span><span class="pln"> referring to any views </span><span class="kwd" style="color:rgb(0,0,136)">in</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">this</span><span class="pln"> layout </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">UnknownIdI</span>
<span class="pln">nLayout</span><span class="pun" style="color:rgb(102,102,0)">]</span>
<span class="pln">        android</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">layout_alignLeft</span><span class="pun" style="color:rgb(102,102,0)">=</span><span class="str" style="color:rgb(0,136,0)">"@+id/button1"</span>
<span class="pln">        </span><span class="pun" style="color:rgb(102,102,0)">^</span>
<span class="pln">res\layout\internet_image_demo</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">10</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">The</span><span class="pln"> id </span><span class="str" style="color:rgb(0,136,0)">"textView1"</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">is</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">not</span><span class="pln"> referring to any views </span><span class="kwd" style="color:rgb(0,0,136)">in</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">this</span><span class="pln"> layout </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">Unknown</span>
<span class="typ" style="color:rgb(102,0,102)">IdInLayout</span><span class="pun" style="color:rgb(102,102,0)">]</span>
<span class="pln">        android</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">layout_below</span><span class="pun" style="color:rgb(102,102,0)">=</span><span class="str" style="color:rgb(0,136,0)">"@+id/textView1"</span>
<span class="pln">        </span><span class="pun" style="color:rgb(102,102,0)">^</span>
<span class="typ" style="color:rgb(102,0,102)">AndroidManifest</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">52</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Exported</span><span class="pln"> receiver does </span><span class="kwd" style="color:rgb(0,0,136)">not</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">require</span><span class="pln"> permission </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">ExportedReceiver</span><span class="pun" style="color:rgb(102,102,0)">]</span>
<span class="pln">        </span><span class="pun" style="color:rgb(102,102,0)">&lt;</span><span class="pln">receiver android</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">name</span><span class="pun" style="color:rgb(102,102,0)">=</span><span class="str" style="color:rgb(0,136,0)">".AlarmReceiver"</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">&gt;</span>
<span class="pln">        </span><span class="pun" style="color:rgb(102,102,0)">^</span>
<span class="pln">res\menu\activity_main</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">The</span><span class="pln"> resource R</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">menu</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">activity_main appears to be unused </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">UnusedResources</span><span class="pun" style="color:rgb(102,102,0)">]</span>
<span class="pln">res\drawable</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="pln">hdpi\ic_action_search</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">png</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">The</span><span class="pln"> resource R</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">drawable</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">ic_action_search appears to be unused </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">UnusedRe</span>
<span class="pln">sources</span><span class="pun" style="color:rgb(102,102,0)">]</span>
<span class="pln">res\values\strings</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">7</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">The</span><span class="pln"> resource R</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="kwd" style="color:rgb(0,0,136)">string</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">hello appears to be unused </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">UnusedResources</span><span class="pun" style="color:rgb(102,102,0)">]</span>
<span class="pun" style="color:rgb(102,102,0)">&lt;</span><span class="kwd" style="color:rgb(0,0,136)">string</span><span class="pln"> name</span><span class="pun" style="color:rgb(102,102,0)">=</span><span class="str" style="color:rgb(0,136,0)">"hello"</span><span class="pun" style="color:rgb(102,102,0)">&gt;你好！&lt;/</span><span class="kwd" style="color:rgb(0,0,136)">string</span><span class="pun" style="color:rgb(102,102,0)">&gt;</span>
<span class="pun" style="color:rgb(102,102,0)">^</span>
<span class="pln">res\drawable</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="pln">mdpi</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Missing</span><span class="pln"> the following drawables </span><span class="kwd" style="color:rgb(0,0,136)">in</span><span class="pln"> drawable</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="pln">mdpi</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> icon</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">png</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> icon2</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">png </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">IconDensities</span><span class="pun" style="color:rgb(102,102,0)">]</span>
<span class="pln">res\drawable</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="pln">xhdpi</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Missing</span><span class="pln"> the following drawables </span><span class="kwd" style="color:rgb(0,0,136)">in</span><span class="pln"> drawable</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="pln">xhdpi</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> icon</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">png</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> icon2</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">png </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">IconDensities</span><span class="pun" style="color:rgb(102,102,0)">]</span>
<span class="pln">res\layout\internet_image_demo</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">5</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">Accessibility</span><span class="pun" style="color:rgb(102,102,0)">]</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Missing</span><span class="pln"> contentDescription attribute on image </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">ContentDes</span>
<span class="pln">cription</span><span class="pun" style="color:rgb(102,102,0)">]</span>
<span class="pln">    </span><span class="pun" style="color:rgb(102,102,0)">&lt;</span><span class="typ" style="color:rgb(102,0,102)">ImageView</span>
<span class="pln">    </span><span class="pun" style="color:rgb(102,102,0)">^</span>
<span class="pln">res\layout\activity_main</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">17</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="pln">I18N</span><span class="pun" style="color:rgb(102,102,0)">]</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Hardcoded</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">string</span><span class="pln"> </span><span class="str" style="color:rgb(0,136,0)">"go Hello"</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> should </span><span class="kwd" style="color:rgb(0,0,136)">use</span><span class="pln"> </span><span class="lit" style="color:rgb(0,102,102)">@string</span><span class="pln"> resource </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">HardcodedText</span>
<span class="pun" style="color:rgb(102,102,0)">]</span>
<span class="pln">        android</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">text</span><span class="pun" style="color:rgb(102,102,0)">=</span><span class="str" style="color:rgb(0,136,0)">"go Hello"</span>
<span class="pln">        </span><span class="pun" style="color:rgb(102,102,0)">^</span>
<span class="pln">res\layout\activity_main</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">23</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="pln">I18N</span><span class="pun" style="color:rgb(102,102,0)">]</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Hardcoded</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">string</span><span class="pln"> </span><span class="str" style="color:rgb(0,136,0)">"打印所有任务栈信息"</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> should </span><span class="kwd" style="color:rgb(0,0,136)">use</span><span class="pln"> </span><span class="lit" style="color:rgb(0,102,102)">@string</span><span class="pln"> resource </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">Har</span>
<span class="pln">dcodedText</span><span class="pun" style="color:rgb(102,102,0)">]</span>
<span class="pln">        android</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">text</span><span class="pun" style="color:rgb(102,102,0)">=</span><span class="str" style="color:rgb(0,136,0)">"打印所有任务栈信息"</span>
<span class="pln">        </span><span class="pun" style="color:rgb(102,102,0)">^</span>
<span class="pln">res\layout\activity_main</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">29</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="pln">I18N</span><span class="pun" style="color:rgb(102,102,0)">]</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Hardcoded</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">string</span><span class="pln"> </span><span class="str" style="color:rgb(0,136,0)">"打印所有服务信息"</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> should </span><span class="kwd" style="color:rgb(0,0,136)">use</span><span class="pln"> </span><span class="lit" style="color:rgb(0,102,102)">@string</span><span class="pln"> resource </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">Hardc</span>
<span class="pln">odedText</span><span class="pun" style="color:rgb(102,102,0)">]</span>
<span class="pln">        android</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">text</span><span class="pun" style="color:rgb(102,102,0)">=</span><span class="str" style="color:rgb(0,136,0)">"打印所有服务信息"</span>
<span class="pln">        </span><span class="pun" style="color:rgb(102,102,0)">^</span>
<span class="pln">res\layout\activity_main</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">35</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="pln">I18N</span><span class="pun" style="color:rgb(102,102,0)">]</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Hardcoded</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">string</span><span class="pln"> </span><span class="str" style="color:rgb(0,136,0)">"打印进程信息"</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> should </span><span class="kwd" style="color:rgb(0,0,136)">use</span><span class="pln"> </span><span class="lit" style="color:rgb(0,102,102)">@string</span><span class="pln"> resource </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">Hardcoded</span>
<span class="typ" style="color:rgb(102,0,102)">Text</span><span class="pun" style="color:rgb(102,102,0)">]</span>
<span class="pln">        android</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">text</span><span class="pun" style="color:rgb(102,102,0)">=</span><span class="str" style="color:rgb(0,136,0)">"打印进程信息"</span>
<span class="pln">        </span><span class="pun" style="color:rgb(102,102,0)">^</span>
<span class="pln">res\layout\hello</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">23</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="pln">I18N</span><span class="pun" style="color:rgb(102,102,0)">]</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Hardcoded</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">string</span><span class="pln"> </span><span class="str" style="color:rgb(0,136,0)">"please click me"</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> should </span><span class="kwd" style="color:rgb(0,0,136)">use</span><span class="pln"> </span><span class="lit" style="color:rgb(0,102,102)">@string</span><span class="pln"> resource </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">HardcodedText</span><span class="pun" style="color:rgb(102,102,0)">]</span>

<span class="pln">        android</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">text</span><span class="pun" style="color:rgb(102,102,0)">=</span><span class="str" style="color:rgb(0,136,0)">"please click me"</span>
<span class="pln">        </span><span class="pun" style="color:rgb(102,102,0)">^</span>
<span class="lit" style="color:rgb(0,102,102)">0</span><span class="pln"> errors</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> </span><span class="lit" style="color:rgb(0,102,102)">14</span><span class="pln"> warnings</span>
</div><div>
</div><p style="margin-top:0px; margin-bottom:10px; padding-top:0px; padding-bottom:0px"></p></pre>
</div>
<div><strong>2.2、Disabling Checks（</strong><span style="line-height:22px; color:rgb(153,51,0)">--disable</span><strong>）</strong></div>
<div><span style="color:#003366">在执行</span><span style="color:#ff00ff">lint</span><span style="color:#003366">命令时可以通过</span><span style="color:#993300">--disable</span><span style="color:#003366">选项要指定关闭的检查规则项。</span><span style="line-height:22px"><span style="color:#993300; line-height:25px">--disable</span><span style="color:#003366; line-height:25px">选项后接要关闭的</span></span><span style="line-height:22px"><span style="color:#003366; line-height:25px">检查规则项的id（比如</span><span style="line-height:25px">示例3</span><span style="color:#003366; line-height:25px">中的</span></span><span style="color:#808000">MissingTranslation</span><span style="line-height:22px; color:rgb(0,51,102)">）或</span><span style="line-height:22px"><span style="color:#003366; line-height:25px">检查规则项的类别（比如</span><span style="line-height:25px">示例3</span><span style="color:#003366; line-height:25px">中的</span></span><span style="color:#339966">Usability:Icons</span><span style="color:#003366">和</span><strong>示例4</strong><span style="color:#003366">的</span><span style="color:#008000">Internationalization</span><span style="line-height:22px; color:rgb(0,51,102)">）。</span></div>
<div><span style="line-height:22px; color:rgb(0,51,102)">关于lint检查项的</span><span style="line-height:22px"><span style="color:#800000; line-height:25px">id</span></span><span style="line-height:22px; color:rgb(0,51,102)">和</span><span style="line-height:22px"><span style="color:#800000; line-height:25px">类别</span></span><span style="line-height:22px; color:rgb(0,51,102)">（</span><span style="color:#800000">Category</span><span style="line-height:22px; color:rgb(0,51,102)">）等信息请参考《</span><a title="阅读全文" target="_blank" href="http://hubingforever.blog.163.com/blog/static/17104057920121069261691/" style="color:rgb(245,149,19); text-decoration:initial; white-space:nowrap">Android
 Lint 检查规则列表</a><span style="line-height:22px; color:rgb(0,51,102)">》</span></div>
<div><span style="line-height:22px"><span style="line-height:25px">示例3</span></span></div>
<div>
<pre class="prettyprint" style="padding:2px; border:1px solid rgb(136,136,136)" name="code"><p style="margin-top:0px; margin-bottom:10px; padding-top:0px; padding-bottom:0px"><span class="pln">$ lint </span><span class="pun" style="color:rgb(102,102,0)">--</span><span class="pln">disable </span><span class="typ" style="color:rgb(102,0,102)">MissingTranslation</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="typ" style="color:rgb(102,0,102)">UnusedIds</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="typ" style="color:rgb(102,0,102)">Usability</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="typ" style="color:rgb(102,0,102)">Icons</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">/</span><span class="pln">src</span><span class="pun" style="color:rgb(102,102,0)">/</span><span class="pln">astrid</span><span class="pun" style="color:rgb(102,102,0)">/</span></p></pre>
</div>
<div><strong>示例4</strong></div>
<div>
<pre class="prettyprint" style="padding:2px; border:1px solid rgb(136,136,136)" name="code"><p style="margin-top:0px; margin-bottom:10px; padding-top:0px; padding-bottom:0px"></p><div><span class="pln">C</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">\Documents </span><span class="kwd" style="color:rgb(0,0,136)">and</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Settings</span><span class="pln">\Administrator</span><span class="pun" style="color:rgb(102,102,0)">&gt;</span><span class="pln">lint </span><span class="pun" style="color:rgb(102,102,0)">--</span><span class="pln">disable </span><span class="typ" style="color:rgb(102,0,102)">Internationalization</span><span class="pln"> D</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">\workspace\Test</span></div><div>
</div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Test</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">.........................................................................................................</span></div><div><span class="pun" style="color:rgb(102,102,0)">........................................................................................................................</span></div><div><span class="pun" style="color:rgb(102,102,0)">...................</span></div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Test</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">(</span><span class="typ" style="color:rgb(102,0,102)">Phase</span><span class="pln"> </span><span class="lit" style="color:rgb(0,102,102)">2</span><span class="pun" style="color:rgb(102,102,0)">):</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">......</span></div><div><span class="pln">res\layout\internet_image_demo</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">9</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">The</span><span class="pln"> id </span><span class="str" style="color:rgb(0,136,0)">"button1"</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">is</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">not</span><span class="pln"> referring to any views </span><span class="kwd" style="color:rgb(0,0,136)">in</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">this</span><span class="pln"> layout </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">UnknownIdI</span></div><div><span class="typ" style="color:rgb(102,0,102)">nLayout</span><span class="pun" style="color:rgb(102,102,0)">]</span></div><div><span class="pln">&nbsp; &nbsp; &nbsp; &nbsp; android</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">layout_alignLeft</span><span class="pun" style="color:rgb(102,102,0)">=</span><span class="str" style="color:rgb(0,136,0)">"@+id/button1"</span></div><div><span class="pln">&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="pun" style="color:rgb(102,102,0)">^</span></div><div><span class="pln">res\layout\internet_image_demo</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">10</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">The</span><span class="pln"> id </span><span class="str" style="color:rgb(0,136,0)">"textView1"</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">is</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">not</span><span class="pln"> referring to any views </span><span class="kwd" style="color:rgb(0,0,136)">in</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">this</span><span class="pln"> layout </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">Unknown</span></div><div><span class="typ" style="color:rgb(102,0,102)">IdInLayout</span><span class="pun" style="color:rgb(102,102,0)">]</span></div><div><span class="pln">&nbsp; &nbsp; &nbsp; &nbsp; android</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">layout_below</span><span class="pun" style="color:rgb(102,102,0)">=</span><span class="str" style="color:rgb(0,136,0)">"@+id/textView1"</span></div><div><span class="pln">&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="pun" style="color:rgb(102,102,0)">^</span></div><div><span class="typ" style="color:rgb(102,0,102)">AndroidManifest</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">52</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Exported</span><span class="pln"> receiver does </span><span class="kwd" style="color:rgb(0,0,136)">not</span><span class="pln"> </span><span class="kwd" style="color:rgb(0,0,136)">require</span><span class="pln"> permission </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">ExportedReceiver</span><span class="pun" style="color:rgb(102,102,0)">]</span></div><div><span class="pln">&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="pun" style="color:rgb(102,102,0)">&lt;</span><span class="pln">receiver android</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">name</span><span class="pun" style="color:rgb(102,102,0)">=</span><span class="str" style="color:rgb(0,136,0)">".AlarmReceiver"</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">&gt;</span></div><div><span class="pln">&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="pun" style="color:rgb(102,102,0)">^</span></div><div><span class="pln">res\menu\activity_main</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">The</span><span class="pln"> resource R</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">menu</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">activity_main appears to be unused </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">UnusedResources</span><span class="pun" style="color:rgb(102,102,0)">]</span></div><div><span class="pln">res\drawable</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="pln">hdpi\ic_action_search</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">png</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">The</span><span class="pln"> resource R</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">drawable</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">ic_action_search appears to be unused </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">UnusedRe</span></div><div><span class="typ" style="color:rgb(102,0,102)">sources</span><span class="pun" style="color:rgb(102,102,0)">]</span></div><div><span class="pln">res\values\strings</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">7</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">The</span><span class="pln"> resource R</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="kwd" style="color:rgb(0,0,136)">string</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">hello appears to be unused </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">UnusedResources</span><span class="pun" style="color:rgb(102,102,0)">]</span></div><div><span class="pun" style="color:rgb(102,102,0)">&lt;</span><span class="kwd" style="color:rgb(0,0,136)">string</span><span class="pln"> name</span><span class="pun" style="color:rgb(102,102,0)">=</span><span class="str" style="color:rgb(0,136,0)">"hello"</span><span class="pun" style="color:rgb(102,102,0)">&gt;你好！&lt;/</span><span class="kwd" style="color:rgb(0,0,136)">string</span><span class="pun" style="color:rgb(102,102,0)">&gt;</span></div><div><span class="pun" style="color:rgb(102,102,0)">^</span></div><div><span class="pln">res\drawable</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="pln">mdpi</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Missing</span><span class="pln"> the following drawables </span><span class="kwd" style="color:rgb(0,0,136)">in</span><span class="pln"> drawable</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="pln">mdpi</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> icon</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">png</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> icon2</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">png </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">IconDensities</span><span class="pun" style="color:rgb(102,102,0)">]</span></div><div><span class="pln">res\drawable</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="pln">xhdpi</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Missing</span><span class="pln"> the following drawables </span><span class="kwd" style="color:rgb(0,0,136)">in</span><span class="pln"> drawable</span><span class="pun" style="color:rgb(102,102,0)">-</span><span class="pln">xhdpi</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> icon</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">png</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> icon2</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">png </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">IconDensities</span><span class="pun" style="color:rgb(102,102,0)">]</span></div><div><span class="pln">res\layout\internet_image_demo</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">xml</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="lit" style="color:rgb(0,102,102)">5</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Warning</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">Accessibility</span><span class="pun" style="color:rgb(102,102,0)">]</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Missing</span><span class="pln"> contentDescription attribute on image </span><span class="pun" style="color:rgb(102,102,0)">[</span><span class="typ" style="color:rgb(102,0,102)">ContentDes</span></div><div><span class="typ" style="color:rgb(102,0,102)">cription</span><span class="pun" style="color:rgb(102,102,0)">]</span></div><div><span class="pln">&nbsp; &nbsp; </span><span class="pun" style="color:rgb(102,102,0)">&lt;</span><span class="typ" style="color:rgb(102,0,102)">ImageView</span></div><div><span class="pln">&nbsp; &nbsp; </span><span class="pun" style="color:rgb(102,102,0)">^</span></div><div><span class="lit" style="color:rgb(0,102,102)">0</span><span class="pln"> errors</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="pln"> </span><span class="lit" style="color:rgb(0,102,102)">9</span><span class="pln"> warnings</span></div><p style="margin-top:0px; margin-bottom:10px; padding-top:0px; padding-bottom:0px"></p></pre>
</div>
<div><span style="line-height:22px">2.3、enabling Checks(</span><span style="line-height:22px; color:rgb(153,51,0)">--enable</span><span style="line-height:22px">和</span><span style="color:#993300">--check</span><span style="line-height:22px">)</span></div>
<div><span style="line-height:22px">lint的有些检查项默认是关闭的(disable),在执行lint命令时可以通过</span><span style="color:#ff00ff">--enable</span>选项开启它。<span style="color:#993300">-enable</span><span style="line-height:22px"><span style="color:#003366">选项后接要开启的</span></span><span style="line-height:22px"><span style="color:#003366">检查规则项的id（比如</span><strong>示例5</strong><span style="color:#003366">中的</span></span><span style="line-height:22px; color:rgb(128,128,0)">MissingTranslation</span>&nbsp;<span style="line-height:22px; color:rgb(0,51,102)">）</span><span style="line-height:22px; color:rgb(0,51,102)">或</span><span style="line-height:22px"><span style="color:#003366">检查规则项的类别（</span><strong>示例5</strong><span style="color:#003366">中的</span></span><span style="color:#339966; line-height:22px">Usability:Icons</span><span style="line-height:22px; color:rgb(0,51,102)">）</span></div>
<div><span style="line-height:22px"><span style="line-height:25px">示例5</span></span></div>
<div>
<pre class="prettyprint" style="padding:2px; border:1px solid rgb(136,136,136)" name="code"><p style="margin-top:0px; margin-bottom:10px; padding-top:0px; padding-bottom:0px"><span class="pln">$ lint </span><span class="pun" style="color:rgb(102,102,0)">--</span><span class="pln">disable </span><span class="typ" style="color:rgb(102,0,102)">MissingTranslation</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="typ" style="color:rgb(102,0,102)">UnusedIds</span><span class="pun" style="color:rgb(102,102,0)">,</span><span class="typ" style="color:rgb(102,0,102)">Usability</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="typ" style="color:rgb(102,0,102)">Icons</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">/</span><span class="pln">src</span><span class="pun" style="color:rgb(102,102,0)">/</span><span class="pln">astrid</span><span class="pun" style="color:rgb(102,102,0)">/</span></p></pre>
</div>
<div><span style="line-height:22px">在执行lint命令时可以通过</span><span style="color:#ff00ff">--check</span><span style="line-height:22px">选项来指定只进行某些检查。</span><span style="color:#993300">-check</span><span style="line-height:22px"><span style="color:#003366">选项后接要开启的</span></span><span style="line-height:22px"><span style="color:#003366">检查规则项的id（比如</span><strong>示例6</strong><span style="color:#003366">中的</span></span><span style="color:#808000; line-height:22px">MissingPrefix</span><span style="line-height:22px; color:rgb(0,51,102)">）</span></div>
<div><span style="line-height:22px"><span style="line-height:25px">示例6</span></span></div>
<div><span style="line-height:13px; color:rgb(0,96,0); font-family:monospace; font-size:13px; background-color:rgb(239,239,239)">$ lint --check MissingPrefix /src/astrid/</span></div>
<div><strong>2.4、检查项类别和检查项id</strong></div>
<div>可以通过<span style="color:#ff00ff">lint</span>的<span style="color:#993300">--list</span>选项来得到检查项类别和检查项id.</div>
<div>比如：</div>
<div><code style="line-height:13px; color:rgb(0,96,0); font-size:13px">$&nbsp;</code><code style="line-height:13px; font-size:13px"><span style="color:#ff00ff; line-height:23px">lint</span></code><code style="line-height:13px; color:rgb(0,96,0); font-size:13px">&nbsp;</code><code style="line-height:13px; font-size:13px"><span style="color:#993300; line-height:23px">--list</span></code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Valid issue categories:</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Correctness</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Security</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Performance</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Usability</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Usability:Icons</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Accessibility</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Internationalization</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Valid issue id's:</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">"ContentDescription": Ensures that image widgets provide a contentDescription</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">"DuplicateIds": Checks for duplicate ids within a single layout</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">"StateListReachable": Looks for unreachable states in a &lt;selector&gt;</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">"InefficientWeight": Looks for inefficient weight declarations in LinearLayouts</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">"ScrollViewSize": Checks that ScrollViews use wrap_content in scrolling dimension</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">"MergeRootFrame": Checks whether a root &lt;FrameLayout&gt; can be replaced with a &lt;merge&gt; tag</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">...</code></div>
<div><br>
</div>
<div><span style="line-height:22px">可以通过</span><span style="color:#ff00ff; line-height:22px">lint</span><span style="line-height:22px">的</span><span style="color:#993300">--show</span><span style="line-height:22px">选项后跟检查项id来得到一个检查项的详细说明.</span></div>
<div><span style="line-height:22px">比如：</span></div>
<div><code style="line-height:13px; color:rgb(0,96,0); font-size:13px">$ lint --show MissingPrefix</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">MissingPrefix</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">-------------</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Summary: Detect XML attributes not using the Android namespace</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Priority: 8 / 10</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Severity: Warning</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Category: Correctness</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">Most Android views have attributes in the Android namespace. When</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">referencing these attributes you *must* include the namespace prefix,</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">or your attribute will be interpreted by aapt as just a custom</code><br style="line-height:13px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:13px; color:rgb(0,96,0); font-size:13px">attribute.</code></div>
<div><span style="line-height:22px">当然你也可以通过</span><span style="line-height:22px; color:rgb(0,51,102)">《</span><a title="阅读全文" target="_blank" href="http://hubingforever.blog.163.com/blog/static/17104057920121069261691/" style="color:rgb(245,149,19); line-height:22px; text-decoration:initial; white-space:nowrap">Android
 Lint 检查规则列表</a><span style="line-height:22px; color:rgb(0,51,102)">》来查阅检查项的id等详细信息</span></div>
<div><strong>2.4、html形式的report</strong></div>
<div><span style="color:#003366">在</span><span style="color:#ff00ff">lint</span><span style="color:#003366">中，我们可以通过</span><span style="color:#993300">--html</span><span style="color:#003366">选项接文件路径的形式把代码扫描结果以html文件的形式进行输出。</span></div>
<div><strong>示例6</strong></div>
<div>
<pre class="prettyprint" style="padding:2px; border:1px solid rgb(136,136,136)" name="code"><p style="margin-top:0px; margin-bottom:10px; padding-top:0px; padding-bottom:0px"></p><div><span class="pln">C</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">\Documents </span><span class="kwd" style="color:rgb(0,0,136)">and</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Settings</span><span class="pln">\Administrator</span><span class="pun" style="color:rgb(102,102,0)">&gt;</span><span class="pln">lint </span><span class="pun" style="color:rgb(102,102,0)">--</span><span class="pln">html D</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">\workspace\Test\report</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">htm</span></div><div><span class="pln">l D</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">\workspace\Test</span></div><div>
</div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Test</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">.................................................................</span></div><div><span class="pun" style="color:rgb(102,102,0)">................................................................................</span></div><div><span class="pun" style="color:rgb(102,102,0)">................................................................................</span></div><div><span class="pun" style="color:rgb(102,102,0)">...................</span></div><div><span class="typ" style="color:rgb(102,0,102)">Scanning</span><span class="pln"> </span><span class="typ" style="color:rgb(102,0,102)">Test</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">(</span><span class="typ" style="color:rgb(102,0,102)">Phase</span><span class="pln"> </span><span class="lit" style="color:rgb(0,102,102)">2</span><span class="pun" style="color:rgb(102,102,0)">):</span><span class="pln"> </span><span class="pun" style="color:rgb(102,102,0)">......</span></div><div><span class="typ" style="color:rgb(102,0,102)">Wrote</span><span class="pln"> HTML report to D</span><span class="pun" style="color:rgb(102,102,0)">:</span><span class="pln">\workspace\Test\report</span><span class="pun" style="color:rgb(102,102,0)">.</span><span class="pln">html</span></div><p style="margin-top:0px; margin-bottom:10px; padding-top:0px; padding-bottom:0px"></p></pre>
</div>
<div>html输出报告如<strong>图2</strong>所示</div>
<div><strong>图2</strong></div>
<div>
<div><span style="color:#993300"><img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919023_9598.jpg" width="750" height="405" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"></span></div>
&nbsp;</div>
<div><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">By default, links to source files will just use local file:// path resources. You can remap the URLs to a different prefix with the --url option.
 For example:</span><br style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<div style="line-height:1; background-color:rgb(239,239,239); border:1px solid rgb(211,211,211); padding:0.5em 0px 0.5em 1em; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<code style="line-height:23px; color:rgb(0,96,0)">$ lint --html /tmp/report.html --url /src/MyProj=http://buildserver/src/MyProj</code></div>
</div>
<div><strong>2.5、命令行帮助</strong></div>
<div>在lint中，你可以使用<span style="color:#ff00ff">--help</span>选项来得到lint命令的一些帮助信息。</div>
<div><strong>示例7</strong></div>
<div><span style="line-height:21px; color:rgb(0,96,0); font-family:monospace; font-size:13px">lint --help</span></div>
<div><strong><span style="font-size:14px; line-height:28px">三、Eclispe中使用</span><span style="font-size:12px; color:#993300; line-height:23px">Lint</span></strong></div>
<div><span style="color:#003366">从</span><span style="color:#993300">ADT16</span><span style="color:#003366">开始，lint就集成到了ADT中。该它在lint命令行的基础上新增了以下功能</span></div>
<div>
<ul style="line-height:21px; margin:5px 0px 5px 40px; padding:0px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<li style="line-height:23px; list-style-position:outside; list-style-type:square">
Automatic fixes for many warnings自动修正大量警告</li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
Lint gets run automatically on various editing operations当编辑操作完成后，立即自动运行</li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
Ability to suppress types of errors as well as specific instances of an error可以suppress(忽略)一种类型的erro，也可以suppress(忽略)特定的一个erro</li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
Ability to configure issue severities能够配置issue（问题）的<span style="line-height:20px">severities</span>(严重性)</li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
Jump directly to the problem source from the lint view通过lint视图能直接跳转到其问题对应的源码处</li></ul>
</div>
<div><strong>3.1、Automatic Lint</strong></div>
<div>Lint将在以下情况下自动运行：</div>
<div>
<li style="line-height:21px; list-style-position:outside; list-style-type:square; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
Export an APK. In this case it runs lint in a special mode which only looks for fatal errors (which is faster) and aborts the export if any fatal errors are found. You can turn off this in the Lint Options.在导出APK文件的时候，lint会做快速的扫描，以寻找fatal的错误。如果发现有fatal的错误，导出APK的操作将被迫终止</li><li style="line-height:21px; list-style-position:outside; list-style-type:square; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
Edit and Save and XML file, such as a layout file or a manifest file. In this case, all the file-scope checks that apply to the given file are run and editor markers are added for any issues found.编辑和保存XML文件，lint也会自动扫描这些文件。另外从ADT20开始，对于java源码文件在编辑和保存后，lint也会对他们进行扫描。</li><li style="list-style-position:outside; list-style-type:square"><span style="font-family:Arial,Verdana,sans-serif; font-size:12px; color:#444444; line-height:23px"><span style="line-height:21px">Use the layout editor. After every UI operation, file-scope checks
 (such as the various layoutopt rules) are run on the layout file and the results are shown in a special lint window (which can be opened from the error marker which shows in the top right corner of the layout editor when errors are found).对于使用layout editor来操作布局文件时，在每个UI操作后,lint也会自动扫描该布局文件。</span></span></li></div>
<div><br>
</div>
<div><strong>3.2、Lint Window</strong></div>
<div>在Eclipse中，你可以通过两种方式来手动进行lint的扫描：</div>
<div>一种方式是通过工具栏，双击图3-1中红色箭头指向的按钮，然后出现图3-2所示的下拉框，在该下拉选择要进行lint扫描的工程</div>
<div><strong>图3-1</strong></div>
<div>
<div><img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919055_2487.jpg" width="399" height="228" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"></div>
&nbsp;</div>
<div><strong>图3-2</strong></div>
<div>
<div><img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919085_4369.jpg" width="379" height="199" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"></div>
&nbsp;</div>
<div><span style="line-height:22px">一种方式是选中一个Android工程，单击右键，在下拉菜单中选择“Android tools”-&gt;"Run lint:check common erro",如图3-3所示</span></div>
<div><span style="line-height:22px"><span style="line-height:25px">图3-3</span></span></div>
<div>
<div><img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919116_7622.jpg" width="500" height="431" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"></div>
&nbsp;</div>
<div>运行lint之后，你将看到如<strong>图3-4</strong>或<strong>图3-5</strong>所示的lint 窗口</div>
<div><strong>图3-4</strong></div>
<div>
<div><img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919137_6226.jpg" width="750" height="400" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"></div>
&nbsp;</div>
<div><strong>图3-5</strong></div>
<div>
<div><img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919159_8309.jpg" width="500" height="303" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"></div>
&nbsp;</div>
<div>默认情况下，同一个类型的issue都是折叠成一块的，图3-4和图3-5是我手动展开的。</div>
<div>lint窗口的工具栏上有一些按钮，如图3-6所示</div>
<div><strong>图3-6</strong></div>
<div><img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919194_2948.jpg" width="296" height="43" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"></div>
<div>它们的意义分别如下</div>
<div>
<ul style="line-height:21px; margin:5px 0px 5px 40px; padding:0px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<li style="line-height:23px; list-style-position:outside; list-style-type:square">
<img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355922051_3338.png" width="24" height="22" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"><span style="line-height:21px">&nbsp;</span><span style="line-height:21px">Refresh,
 which re-runs the current analysis on the same projects</span></li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
<img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355922073_5800.png" width="21" height="22" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"><span style="line-height:21px">&nbsp;</span><span style="line-height:21px">Fix,
 which automatically fixes the issue (this applies to issues where a quickfix is available)</span></li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
<img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355922179_3084.png" width="31" height="23" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"><span style="line-height:21px">&nbsp;</span><span style="line-height:21px">Suppress
 this issue with an attribute or annotation</span></li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
<img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355922214_8270.png" width="26" height="24" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"><span style="line-height:21px">&nbsp;</span><span style="line-height:21px">Ignore
 in this file (saves suppress information in lint.xml)</span></li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
<img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919437_2302.png" width="24" height="25" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"><span style="line-height:21px">&nbsp;</span><span style="line-height:21px">Ignore
 in this project (ditto)</span></li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
<img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919448_6211.png" width="24" height="24" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"><span style="line-height:21px">&nbsp;</span><span style="line-height:21px">Always
 ignore</span></li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
<img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919460_7471.png" width="31" height="25" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"><span style="line-height:21px">&nbsp;</span><span style="line-height:21px">Delete
 this lint marker</span></li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
<img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355922270_4447.png" width="21" height="23" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"><span style="line-height:21px">&nbsp;</span><span style="line-height:21px">Delete
 all lint markers</span></li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
<div><img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355922288_2994.png" alt=""><span style="line-height:21px">&nbsp;</span><span style="line-height:21px">Expand All,&nbsp;</span></div>
<div><img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919494_6160.png" width="22" height="24" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"><span style="line-height:21px">&nbsp;</span><span style="line-height:21px">Collapse
 All</span></div>
</li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
<div><img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919504_4798.png" width="25" height="24" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"><span style="line-height:21px">&nbsp;&nbsp;</span><span style="line-height:21px">Configure
 Columns用于设置在lint Window中对于检查出的issue的哪些项显示哪些项不显示，如<span style="line-height:23px">图3-7</span>所示</span></div>
<div><span style="line-height:21px">&nbsp;</span></div>
</li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
<img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919523_7075.png" width="25" height="23" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"><span style="line-height:21px">&nbsp;</span><span style="line-height:21px">Edit
 Options&nbsp;<span style="line-height:21px; font-family:Arial,Verdana,sans-serif; font-size:14px; background-color:rgb(245,245,245)"><span style="color:#444444; line-height:23px; font-size:13px">Edit Options&nbsp;</span><span style="font-size:10px; color:#003366"><span style="line-height:22px; color:rgb(0,0,0); font-family:Arial,Helvetica,sans-serif">点击该按钮会弹出</span><span style="line-height:22px; color:rgb(0,0,0); font-family:Arial,Helvetica,sans-serif">Lint
 Preference dialog</span><span style="line-height:22px; color:rgb(0,0,0); font-family:Arial,Helvetica,sans-serif">，如<span style="line-height:21px">图1</span>或<span style="line-height:21px">图3-8</span>在里面你可以定制默认/全局的Android Lint的基本检查规则</span>，在其中可以</span></span><span style="font-size:10px; line-height:21px; font-family:Arial,Verdana,sans-serif; background-color:rgb(245,245,245); color:rgb(68,68,68)"><span style="color:#003366; line-height:25px; font-family:Arial,Helvetica,simsun,u5b8bu4f53">设置所有项目默认的</span><span style="color:#ff00ff; line-height:25px; font-family:Arial,Helvetica,simsun,u5b8bu4f53">lint</span><span style="color:#003366; line-height:25px; font-family:Arial,Helvetica,simsun,u5b8bu4f53">检查规则的检查级别，</span></span><span style="color:#003366; line-height:25px; font-size:10px; background-color:rgb(245,245,245); font-family:Arial,Helvetica,simsun,u5b8bu4f53">把检查级别(Severity)设为”ignore“,其实就是忽略（</span><span style="line-height:20px; font-family:Arial,Verdana,sans-serif; font-size:10px; background-color:rgb(245,245,245); color:rgb(153,51,0)">suppress</span><span style="color:#003366; line-height:25px; font-size:10px; background-color:rgb(245,245,245); font-family:Arial,Helvetica,simsun,u5b8bu4f53">）该检查规则</span></span></li></ul>
</div>
<div><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">Configure Columns lets you edit which columns are visible. There are several new columns you can display, such as Category, Priority, etc, and you
 can click on column headers to sort the display by the given column. There's also a new "Location" column, shown by default, which incorporates several different pieces of information: the file name, the line number, the parent folder name (useful when looking
 at translation or configuration issues), and the project name:</span></div>
<div><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">Configure Columns用于设置在lint Window中对于检查出的issue的哪些项显示哪些项不显示，如</span><span style="line-height:20px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">图3-7</span><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">所示</span></div>
<div><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px"><span style="line-height:23px"><strong>图3-7</strong></span></span></div>
<div>
<div>
<div><img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919219_9313.jpg" width="750" height="526" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"></div>
&nbsp;</div>
&nbsp;The Edit Options actions brings up the Lint Preference dialog, which has also been improved. &nbsp;You can now search through the options by filter:</div>
<div>点击Edit Options按钮会弹出处理<span style="line-height:22px">Lint Preference dialog</span>，在里面可以定制默认/全局的Android Lint的基本检查规则</div>
<div><strong>图3-8</strong></div>
<div>
<div>
<div><img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355924400_1264.jpg" width="500" height="341" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"></div>
&nbsp;</div>
<strong>&nbsp;3.3、Quick Fixes</strong></div>
<div><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">Many lint warnings have automatic fixes. For example, the various layoutopt fixes suggest replacements (e.g. replace wrap_content with 0dp).&nbsp;</span><br style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<ul style="line-height:21px; margin:5px 0px 5px 40px; padding:0px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<li style="line-height:23px; list-style-position:outside; list-style-type:square">
From the lint view（如<strong>图3-6</strong>所示）, click the lightbulb&nbsp;<img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1356785865_8947.png" width="21" height="22" style="line-height:21px; border:0px; max-width:100%; margin:0px 10px 0px 0px"><br>
&nbsp;to invoke a fix.</li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
From the layout editor warning summary, click the Fix button to fix.</li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
And from the XML source editor, invoke the Quick Fix (Ctrl-1 or Command-1) and pick the quick fix associated with the warning.</li></ul>
</div>
<div><strong>3.4、Suppressing Errors(检查规则的基本定制)</strong></div>
<div><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">From the editor quick fix menu（</span><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px"><span style="line-height:23px">如图3-9所示</span></span><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">）,
 you can also choose to</span></div>
<div>
<ul style="line-height:21px; margin:5px 0px 5px 40px; padding:0px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<li style="line-height:23px; list-style-position:outside; list-style-type:square">
Ignore the warning in this file only</li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
Ignore the warning in this project</li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
Ignore the warning, period.</li><li style="line-height:23px; list-style-position:outside; list-style-type:square">
Ignore warnings using annotations or attributes, as explained&nbsp;<a rel="nofollow" href="http://tools.android.com/recent/ignoringlintwarnings" style="color:rgb(0,51,204); text-decoration:initial">here</a>.</li></ul>
</div>
<div><strong>图3-9</strong></div>
<div>
<div><img alt="Android Lint简介 - hubingforever - 民主与科学" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1355919253_9979.jpg" width="750" height="300" style="border:0px; max-width:100%; margin:0px 10px 0px 0px"></div>
&nbsp;</div>
<div><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">(If you do not see the lint fix action in the quickfix list, see the Known Bugs section)</span><br style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<br style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">
<span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">These choices are stored in a file named&nbsp;</span><code style="line-height:21px; color:rgb(0,96,0); font-size:13px">lint.xml</code><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">&nbsp;in
 the project, which is also read by the command line tool. Thus, you can ignore warnings from the UI, and check in the</span><code style="line-height:21px; color:rgb(0,96,0); font-size:13px">lint.xml</code><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">&nbsp;file
 with your source projects, and others running lint will not see warnings you have ignored (presumably because they have been manually verified).</span></div>
<div>你的选择在被存在Android工程目录下的<span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">&nbsp;</span><code style="line-height:21px; color:rgb(0,96,0); font-size:13px">lint.xml</code><span style="line-height:21px; color:rgb(68,68,68); font-family:Arial,Verdana,sans-serif; font-size:13px">&nbsp;</span>文件中</div>
<div>关于此的详细内容请参考《<a title="阅读全文" target="_blank" href="http://hubingforever.blog.163.com/blog/static/1710405792012102594926535/" style="color:rgb(245,149,19); text-decoration:initial; white-space:nowrap">Android Lint 检查规则的定制（基本篇）</a><a title="阅读全文" target="_blank" href="http://hubingforever.blog.163.com/blog/static/1710405792012102594926535/" style="color:rgb(245,149,19); text-decoration:initial; white-space:nowrap"><span style="color:#000000">》</span></a></div>
<div><span style="line-height:22px">结束！</span></div>
<br>
</div>
</div>
<div class="nbw-blog-end" style="font-family:Arial,Helvetica,simsun,u5b8bu4f53; background-color:rgb(245,245,245)">
</div>
<div style="font-family:Arial,Helvetica,simsun,u5b8bu4f53; background-color:rgb(245,245,245)">
</div>
<div style="font-family:Arial,Helvetica,simsun,u5b8bu4f53; background-color:rgb(245,245,245)">
</div>
<div style="font-family:Arial,Helvetica,simsun,u5b8bu4f53; background-color:rgb(245,245,245)">
<div class="wumii-hook"></div>
</div>
<div class="nbw-act tbar fc03 clearfix" style="zoom:1; margin:5px 0px; padding:10px 10px 10px 0px; text-align:right; color:rgb(245,149,19); line-height:20px; font-family:Arial,Helvetica,simsun,u5b8bu4f53; background-color:rgb(245,245,245)">
<div style="height:24px; line-height:24px">
<div class="pleft rdif" style="float:left; height:24px"></div>
</div>
</div>
<br>
<p></p>
    
</div>




<!-- Baidu Button BEGIN -->




<div class="bdsharebuttonbox bdshare-button-style0-16" style="float: right;" data-bd-bind="1438076676966">
<a href="http://blog.csdn.net/hudashi/article/details/8333349#" class="bds_more" data-cmd="more" style="background-position:0 0 !important; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=d754dcc0.png) !important"></a>
<a href="http://blog.csdn.net/hudashi/article/details/8333349#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间" style="background-position:0 -52px !important"></a>
<a href="http://blog.csdn.net/hudashi/article/details/8333349#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博" style="background-position:0 -104px !important"></a>
<a href="http://blog.csdn.net/hudashi/article/details/8333349#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博" style="background-position:0 -260px !important"></a>
<a href="http://blog.csdn.net/hudashi/article/details/8333349#" class="bds_renren" data-cmd="renren" title="分享到人人网" style="background-position:0 -208px !important"></a>
<a href="http://blog.csdn.net/hudashi/article/details/8333349#" class="bds_weixin" data-cmd="weixin" title="分享到微信" style="background-position:0 -1612px !important"></a>
</div>
<script>window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "1", "bdMiniList": false, "bdPic": "", "bdStyle": "0", "bdSize": "16" }, "share": {} }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>
<!-- Baidu Button END -->

   <link rel="stylesheet" href="http://static.blog.csdn.net/css/blog_detail.css">

    
<!--192.168.100.36-->
<ul class="article_next_prev">
            <li class="prev_article"><span onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_shangyipian&#39;]);location.href=&#39;/hudashi/article/details/8249597&#39;;">上一篇</span><a href="http://blog.csdn.net/hudashi/article/details/8249597" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_shangyipian&#39;])">Android中实现非本地图片的点击态</a></li>
            <li class="next_article"><span onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_xiayipian&#39;]);location.href=&#39;/hudashi/article/details/8333650&#39;;">下一篇</span><a href="http://blog.csdn.net/hudashi/article/details/8333650" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_xiayipian&#39;])">Android Lint 检查规则的定制（基本篇）</a></li>
</ul>

<!-- Baidu Button BEGIN -->
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=1536434" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/bds_s_v2.js"></script>

<script type="text/javascript">
    document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script>
<!-- Baidu Button END -->

 

        <div id="digg" articleid="8333349">
            <dl id="btnDigg" class="digg digg_disable">
                <dt onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_ding&#39;])">顶</dt>
                <dd>7</dd>
            </dl>
            <dl id="btnBury" class="digg digg_disable">
                <dt onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_cai&#39;])">踩</dt>
                <dd>0</dd>
            </dl>
        </div>
</div>
  

    <dl class="blog-associat-tag">
        <dt>主题推荐</dt>
        <dd>
                <a href="http://www.csdn.net/tag/android" target="_blank" class="blog-tage-red">android</a> 
                <a href="http://www.csdn.net/tag/color" target="_blank" class="blog-tage-red">color</a> 
                <a href="http://www.csdn.net/tag/%E5%8D%9A%E5%AE%A2" target="_blank" class="blog-tage-red">博客</a> 
                <a href="http://www.csdn.net/tag/rgb" target="_blank" class="blog-tage-red">rgb</a> 
                <a href="http://www.csdn.net/tag/class" target="_blank" class="blog-tage-red">class</a> 
        </dd>
    </dl> 

<style>
.blog-ass-articl dd {
color: #369;
width: 99%; /*修改行*/
float: left;
overflow: hidden;
font: normal normal 12px/23px "SimSun";
height: 23px;
margin: 0;
padding: 0 0 0 10px;
margin-right: 30px;
background: url(../images/blog-dot-red3.gif) no-repeat 0 10px;
}

</style>

<dl class="blog-ass-articl" id="res-relatived"> 
     <dt><span>猜你在找</span></dt>    


   


    <div id="adCollege" style="width: 42%;float: left;"> 
        <script src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/job_reco.js" type="text/javascript"></script> 
        <script type="text/javascript">
            csdn.position.showEdu({
                sourceType: "blog",
                searchType: "detail",
                searchKey: "8333349",
                username: "",
                recordcount: "5",
                containerId: "adCollege" //容器DIV的id。 
            });
        </script> 
    <div class="tracking-ad" data-mod="popu_84"><dd style="background:url(http://static.blog.csdn.net/skin/default/images/blog-dot-red3.gif) no-repeat 0 10px; white-space: nowrap;"><a href="http://edu.csdn.net/course/detail/162" title="Qt基础与Qt on Android入门" strategy="content" target="_blank">Qt基础与Qt on Android入门</a></dd><dd style="background:url(http://static.blog.csdn.net/skin/default/images/blog-dot-red3.gif) no-repeat 0 10px; white-space: nowrap;"><a href="http://edu.csdn.net/course/detail/336" title="HTML 5移动开发从入门到精通" strategy="content" target="_blank">HTML 5移动开发从入门到精通</a></dd><dd style="background:url(http://static.blog.csdn.net/skin/default/images/blog-dot-red3.gif) no-repeat 0 10px; white-space: nowrap;"><a href="http://edu.csdn.net/course/detail/435" title="Windows Server 2012 存储和文件管理" strategy="content" target="_blank">Windows Server 2012 存储和文件管理</a></dd><dd style="background:url(http://static.blog.csdn.net/skin/default/images/blog-dot-red3.gif) no-repeat 0 10px; white-space: nowrap;"><a href="http://edu.csdn.net/course/detail/186" title="Part 2：Cocos2d-x开发基础-Cocos简介与环境搭建" strategy="content" target="_blank">Part 2：Cocos2d-x开发基础-Cocos简介与环境搭建</a></dd><dd style="background:url(http://static.blog.csdn.net/skin/default/images/blog-dot-red3.gif) no-repeat 0 10px; white-space: nowrap;"><a href="http://edu.csdn.net/course/detail/782" title="Python项目实训" strategy="hot" target="_blank">Python项目实训</a></dd></div></div>  

    
     <div id="res" data-mod="popu_36" class="tracking-ad" style="width: 42%; float: left; margin-right: 30px; display: block;"><dd style="background:url(http://static.blog.csdn.net/skin/default/images/blog-dot-red3.gif) no-repeat 0 10px;"><a href="http://blog.csdn.net/rosenluo/article/details/40891245" title="分享45个android实例源码很好很强大收藏吧" strategy="CFRecommendAlgorithm" target="_blank">分享45个android实例源码很好很强大收藏吧</a></dd><dd style="background:url(http://static.blog.csdn.net/skin/default/images/blog-dot-red3.gif) no-repeat 0 10px;"><a href="http://blog.csdn.net/shineflowers/article/details/41677891" title="Android HandlerThread的用法" strategy="CFRecommendAlgorithm" target="_blank">Android HandlerThread的用法</a></dd><dd style="background:url(http://static.blog.csdn.net/skin/default/images/blog-dot-red3.gif) no-repeat 0 10px;"><a href="http://blog.csdn.net/tnt123688/article/details/32711417" title="ErrorThe SDK Build Tools revision 1903 is too low for project app Minimum required is 191" strategy="CFRecommendAlgorithm" target="_blank">ErrorThe SDK Build Tools revision 1903 is too low for project app Minimum required is 191</a></dd><dd style="background:url(http://static.blog.csdn.net/skin/default/images/blog-dot-red3.gif) no-repeat 0 10px;"><a href="http://blog.csdn.net/jdsjlzx/article/details/7553987" title="Android提高篇之自定义dialog实现processDialog正在加载效果使用Animation实现图片旋转" strategy="CFRecommendAlgorithm" target="_blank">Android提高篇之自定义dialog实现processDialog正在加载效果使用Animation实现图片旋转</a></dd><dd style="background:url(http://static.blog.csdn.net/skin/default/images/blog-dot-red3.gif) no-repeat 0 10px;"><a href="http://blog.csdn.net/jaysong2012/article/details/45533623" title="Android 特效View第四弹之折线图 心率图" strategy="CFRecommendAlgorithm" target="_blank">Android 特效View第四弹之折线图 心率图</a></dd></div>
   
</dl>

<div id="job_blog_reco"><dl class="blog-ass-articl tracking-ad" data-mod="popu_72"><dt><span>准备好了么？&nbsp;<label class="po_blg_detail_tiao">跳</label><label class="po_blg_detail_ba">吧</label><label class="po_blg_detail_th">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;！</label></span><a href="http://job.csdn.net/" target="_blank" class="po_blg_more">更多职位尽在&nbsp;<label class="po_blg_detail_csdn">CSDN JOB</label></a></dt><dd class="po_blg_dd"><div class="po_blg_po"><a href="http://job.csdn.net/Job/Index?jobID=141248" title="Android高级开发工程师" strategy="DetailRecommend" target="_blank">Android高级开发工程师</a></div><div class="po_blg_company"><a href="http://pr.csdn.net/enterprise/ent_home?orgid=445830" title="北京光慧数码科技有限公司" target="_blank">北京光慧数码科技有限公司</a></div><label class="po_blg_separator">|</label><div class="po_blg_salary"><a href="http://job.csdn.net/Job/Index?jobID=141248" target="_blank">15-20K/月</a></div><a class="po_blg_iwant" href="http://job.csdn.net/Job/Index?jobID=141248" target="_blank">我要跳槽</a></dd><dd class="po_blg_dd"><div class="po_blg_po"><a href="http://job.csdn.net/Job/Index?jobID=87045" title="Android开发人员" strategy="DetailRecommend" target="_blank">Android开发人员</a></div><div class="po_blg_company"><a href="http://pr.csdn.net/enterprise/ent_home?orgid=436408" title="福州七二零信息科技有限公司" target="_blank">福州七二零信息科技有限公司</a></div><label class="po_blg_separator">|</label><div class="po_blg_salary"><a href="http://job.csdn.net/Job/Index?jobID=87045" target="_blank">4-8K/月</a></div><a class="po_blg_iwant" href="http://job.csdn.net/Job/Index?jobID=87045" target="_blank">我要跳槽</a></dd><dd class="po_blg_dd"><div class="po_blg_po"><a href="http://job.csdn.net/Job/Index?jobID=141150" title="Android开发工程师" strategy="DetailRecommend" target="_blank">Android开发工程师</a></div><div class="po_blg_company"><a href="http://pr.csdn.net/enterprise/ent_home?orgid=492041" title="唐山" target="_blank">唐山</a></div><label class="po_blg_separator">|</label><div class="po_blg_salary"><a href="http://job.csdn.net/Job/Index?jobID=141150" target="_blank">5-8K/月</a></div><a class="po_blg_iwant" href="http://job.csdn.net/Job/Index?jobID=141150" target="_blank">我要跳槽</a></dd><dd class="po_blg_dd"><div class="po_blg_po"><a href="http://job.csdn.net/Job/Index?jobID=141101" title="Android工程师" strategy="DetailRecommend" target="_blank">Android工程师</a></div><div class="po_blg_company"><a href="http://pr.csdn.net/enterprise/ent_home?orgid=492033" title="迪丰（厦门）物联网科技有限公司" target="_blank">迪丰（厦门）物联网科技有限公司</a></div><label class="po_blg_separator">|</label><div class="po_blg_salary"><a href="http://job.csdn.net/Job/Index?jobID=141101" target="_blank">4-6K/月</a></div><a class="po_blg_iwant" href="http://job.csdn.net/Job/Index?jobID=141101" target="_blank">我要跳槽</a></dd></dl></div>

<script type="text/javascript">
    var searchtitletags = 'Android Lint简介' + ',' + 'android,color,博客,rgb,class';
    searchService({
        index: 'blog',
        query: searchtitletags,
        from: 5,
        size: 5,
        appendTo: '#res',
        url: 'recommend',
        his: 2,
        client: "blog_cf_enhance",
        tmpl: '<dd style="background:url(http://static.blog.csdn.net/skin/default/images/blog-dot-red3.gif) no-repeat 0 10px;"><a href="#{ url }" title="#{ title }" strategy="#{ strategy }">#{ title }</a></dd>'
    });

 </script>   



    <div id="ad_cen">
   
          <script type="text/javascript">
              new Ad(4, 'ad_cen');
          </script>
    <iframe id="ad_frm_0" frameborder="0" scrolling="no" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ad(1).html" style="border-width: 0px; overflow: hidden; width: 746px; height: 90px;"></iframe></div>
<div class="comment_class">
    <div id="comment_title" class="panel_head">
        <span class="see_comment">查看评论</span><a name="comments"></a></div>
    <div id="comment_list"><dl class="comment_item comment_topic" id="comment_item_5227291"><dt class="comment_head" floor="2">2楼 <span class="user"><a class="username" href="http://blog.csdn.net/Smilelfq" target="_blank">Smilelfq</a> <span class="ptime">前天 11:33发表</span>  <a href="http://blog.csdn.net/hudashi/article/details/8333349#reply" class="cmt_btn reply" title="回复">[回复]</a> <span class="comment_manage" style="display:none;" commentid="5227291" username="Smilelfq"> <a href="http://blog.csdn.net/hudashi/article/details/8333349#quote" class="cmt_btn quote" title="引用">[引用]</a> <a href="http://blog.csdn.net/hudashi/article/details/8333349#report" class="cmt_btn report" title="举报">[举报]</a></span></span></dt><dd class="comment_userface"><a href="http://blog.csdn.net/Smilelfq" target="_blank"><img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/3_smilelfq.jpg" width="40" height="40"></a></dd><dd class="comment_body">学习了</dd></dl><dl class="comment_item comment_topic" id="comment_item_2486336"><dt class="comment_head" floor="1">1楼 <span class="user"><a class="username" href="http://blog.csdn.net/su1216" target="_blank">苏1216</a> <span class="ptime">2012-12-29 18:18发表</span>  <a href="http://blog.csdn.net/hudashi/article/details/8333349#reply" class="cmt_btn reply" title="回复">[回复]</a> <span class="comment_manage" style="display:none;" commentid="2486336" username="su1216"> <a href="http://blog.csdn.net/hudashi/article/details/8333349#quote" class="cmt_btn quote" title="引用">[引用]</a> <a href="http://blog.csdn.net/hudashi/article/details/8333349#report" class="cmt_btn report" title="举报">[举报]</a></span></span></dt><dd class="comment_userface"><a href="http://blog.csdn.net/su1216" target="_blank"><img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/3_su1216.jpg" width="40" height="40"></a></dd><dd class="comment_body">类似findbugs</dd></dl><div class="clear"></div></div>
    <div id="comment_bar" style="display: none;">
    </div>
    <div id="comment_form"><div class="guest_link">您还没有登录,请<a href="javascript:void(0);" onclick="javascript:loginbox();">[登录]</a>或<a href="http://passport.csdn.net/account/register?from=http%3A%2F%2Fblog.csdn.net%2Fhudashi%2Farticle%2Fdetails%2F8333349">[注册]</a></div></div>

    <div class="announce">
        * 以上用户言论只代表其个人观点，不代表CSDN网站的观点或立场<a name="reply"></a><a name="quote"></a></div>
</div>

<script type="text/javascript">
    var fileName = '8333349';
    var commentscount = 2;
    var islock = false
</script>
<script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/comment.js"></script>
    <div id="ad_bot">
    <iframe id="ad_frm_1" frameborder="0" scrolling="no" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ad(2).html" style="border-width: 0px; overflow: hidden; width: 746px; height: 0px;"></iframe></div>
    <script type="text/javascript">
    new Ad(5, 'ad_bot');
    </script>
<div id="report_dialog">
</div>

<div id="d-top" style="bottom:60px;">
        <a id="quick-reply" class="btn btn-top q-reply" title="快速回复" style="display:none;">
            <img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/blog-icon-reply.png" alt="快速回复">
        </a>    

    <a id="d-top-a" class="btn btn-top backtop" style="display: none;" title="返回顶部" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_huidaodingbu&#39;])">         
         <img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/top.png" alt="TOP">
    </a>
</div>
<script type="text/javascript">
    $(function ()
    {
        $("#ad_frm_0").height("90px");
        
        setTimeout(function(){
            $("#ad_frm_2").height("200px");
        },1000);
        
        /*
        if($("#comment_content").length>0)
        {
            $("#quick-reply").show();

            $("#quick-reply").click(function(){
                setEditorFocus();
            });
        }       
     
        var d_top = $('#d-top-a');

        document.onscroll = function ()
        {
            var scrTop = (document.body.scrollTop || document.documentElement.scrollTop);
            if (scrTop > 500)
            {
                d_top.show();
            } else
            {
                d_top.hide();
            }
        }
        $('#d-top-a').click(function ()
        {
            scrollTo(0, 0);
            this.blur();
            return false;
        });
        */
    });
  
</script>
<style type="text/css">
    .tag_list
    {
        background: none repeat scroll 0 0 #FFFFFF;
        border: 1px solid #D7CBC1;
        color: #000000;
        font-size: 12px;
        line-height: 20px;
        list-style: none outside none;
        margin: 10px 2% 0 1%;
        padding: 1px;
    }
    .tag_list h5
    {
        background: none repeat scroll 0 0 #E0DBD3;
        color: #47381C;
        font-size: 12px;
        height: 24px;
        line-height: 24px;
        padding: 0 5px;
        margin: 0;
    }
    .tag_list h5 a
    {
        color: #47381C;
    }
    .classify
    {
        margin: 10px 0;
        padding: 4px 12px 8px;
    }
    .classify a
    {
        margin-right: 20px;
        white-space: nowrap;
    }
</style>
<div class="tag_list">
    <h5>
        <a href="http://www.csdn.net/tag/" target="_blank">核心技术类目</a></h5>
    <div class="classify">
<a title="全部主题" href="http://www.csdn.net/tag" target="_blank" onclick="LogClickCount(this,336);">全部主题</a>
<a title="Hadoop" href="http://g.csdn.net/5272865" target="_blank" onclick="LogClickCount(this,336);">Hadoop</a>
<a title="AWS" href="http://g.csdn.net/5272866" target="_blank" onclick="LogClickCount(this,336);">AWS</a>
<a title="移动游戏" href="http://g.csdn.net/5272870" target="_blank" onclick="LogClickCount(this,336);">移动游戏</a>
<a title="Java" href="http://g.csdn.net/5272871" target="_blank" onclick="LogClickCount(this,336);">Java</a>
<a title="Android" href="http://g.csdn.net/5272872" target="_blank" onclick="LogClickCount(this,336);">Android</a>
<a title="iOS" href="http://g.csdn.net/5272873" target="_blank" onclick="LogClickCount(this,336);">iOS</a>
<a title="Swift" href="http://g.csdn.net/5272868" target="_blank" onclick="LogClickCount(this,336);">Swift</a>
<a title="智能硬件" href="http://g.csdn.net/5272869" target="_blank" onclick="LogClickCount(this,336);">智能硬件</a>
<a title="Docker" href="http://g.csdn.net/5272867" target="_blank" onclick="LogClickCount(this,336);">Docker</a>
<a title="OpenStack" href="http://g.csdn.net/5272925" target="_blank" onclick="LogClickCount(this,336);">OpenStack</a>
<a title="VPN" href="http://www.csdn.net/tag/vpn" target="_blank" onclick="LogClickCount(this,336);">VPN</a>
<a title="Spark" href="http://g.csdn.net/5272924" target="_blank" onclick="LogClickCount(this,336);">Spark</a>
<a title="ERP" href="http://www.csdn.net/tag/erp" target="_blank" onclick="LogClickCount(this,336);">ERP</a>
<a title="IE10" href="http://www.csdn.net/tag/ie10" target="_blank" onclick="LogClickCount(this,336);">IE10</a>
<a title="Eclipse" href="http://www.csdn.net/tag/eclipse" target="_blank" onclick="LogClickCount(this,336);">Eclipse</a>
<a title="CRM" href="http://www.csdn.net/tag/crm" target="_blank" onclick="LogClickCount(this,336);">CRM</a>
<a title="JavaScript" href="http://www.csdn.net/tag/javascript" target="_blank" onclick="LogClickCount(this,336);">JavaScript</a>
<a title="数据库" href="http://www.csdn.net/tag/%E6%95%B0%E6%8D%AE%E5%BA%93" target="_blank" onclick="LogClickCount(this,336);">数据库</a>
<a title="Ubuntu" href="http://www.csdn.net/tag/ubuntu" target="_blank" onclick="LogClickCount(this,336);">Ubuntu</a>
<a title="NFC" href="http://www.csdn.net/tag/nfc" target="_blank" onclick="LogClickCount(this,336);">NFC</a>
<a title="WAP" href="http://www.csdn.net/tag/wap" target="_blank" onclick="LogClickCount(this,336);">WAP</a>
<a title="jQuery" href="http://www.csdn.net/tag/jquery" target="_blank" onclick="LogClickCount(this,336);">jQuery</a>
<a title="BI" href="http://www.csdn.net/tag/bi" target="_blank" onclick="LogClickCount(this,336);">BI</a>
<a title="HTML5" href="http://www.csdn.net/tag/html5" target="_blank" onclick="LogClickCount(this,336);">HTML5</a>
<a title="Spring" href="http://www.csdn.net/tag/spring" target="_blank" onclick="LogClickCount(this,336);">Spring</a>
<a title="Apache" href="http://www.csdn.net/tag/apache" target="_blank" onclick="LogClickCount(this,336);">Apache</a>
<a title=".NET" href="http://www.csdn.net/tag/.net" target="_blank" onclick="LogClickCount(this,336);">.NET</a>
<a title="API" href="http://www.csdn.net/tag/api" target="_blank" onclick="LogClickCount(this,336);">API</a>
<a title="HTML" href="http://www.csdn.net/tag/html" target="_blank" onclick="LogClickCount(this,336);">HTML</a>
<a title="SDK" href="http://www.csdn.net/tag/sdk" target="_blank" onclick="LogClickCount(this,336);">SDK</a>
<a title="IIS" href="http://www.csdn.net/tag/iis" target="_blank" onclick="LogClickCount(this,336);">IIS</a>
<a title="Fedora" href="http://www.csdn.net/tag/fedora" target="_blank" onclick="LogClickCount(this,336);">Fedora</a>
<a title="XML" href="http://www.csdn.net/tag/xml" target="_blank" onclick="LogClickCount(this,336);">XML</a>
<a title="LBS" href="http://www.csdn.net/tag/lbs" target="_blank" onclick="LogClickCount(this,336);">LBS</a>
<a title="Unity" href="http://www.csdn.net/tag/unity" target="_blank" onclick="LogClickCount(this,336);">Unity</a>
<a title="Splashtop" href="http://www.csdn.net/tag/splashtop" target="_blank" onclick="LogClickCount(this,336);">Splashtop</a>
<a title="UML" href="http://www.csdn.net/tag/uml" target="_blank" onclick="LogClickCount(this,336);">UML</a>
<a title="components" href="http://www.csdn.net/tag/components" target="_blank" onclick="LogClickCount(this,336);">components</a>
<a title="Windows Mobile" href="http://www.csdn.net/tag/windowsmobile" target="_blank" onclick="LogClickCount(this,336);">Windows Mobile</a>
<a title="Rails" href="http://www.csdn.net/tag/rails" target="_blank" onclick="LogClickCount(this,336);">Rails</a>
<a title="QEMU" href="http://www.csdn.net/tag/qemu" target="_blank" onclick="LogClickCount(this,336);">QEMU</a>
<a title="KDE" href="http://www.csdn.net/tag/kde" target="_blank" onclick="LogClickCount(this,336);">KDE</a>
<a title="Cassandra" href="http://www.csdn.net/tag/cassandra" target="_blank" onclick="LogClickCount(this,336);">Cassandra</a>
<a title="CloudStack" href="http://www.csdn.net/tag/cloudstack" target="_blank" onclick="LogClickCount(this,336);">CloudStack</a>
<a title="FTC" href="http://www.csdn.net/tag/ftc" target="_blank" onclick="LogClickCount(this,336);">FTC</a>
<a title="coremail" href="http://www.csdn.net/tag/coremail" target="_blank" onclick="LogClickCount(this,336);">coremail</a>
<a title="OPhone " href="http://www.csdn.net/tag/ophone" target="_blank" onclick="LogClickCount(this,336);">OPhone </a>
<a title="CouchBase" href="http://www.csdn.net/tag/couchbase" target="_blank" onclick="LogClickCount(this,336);">CouchBase</a>
<a title="云计算" href="http://www.csdn.net/tag/%E4%BA%91%E8%AE%A1%E7%AE%97" target="_blank" onclick="LogClickCount(this,336);">云计算</a>
<a title="iOS6" href="http://www.csdn.net/tag/iOS6" target="_blank" onclick="LogClickCount(this,336);">iOS6</a>
<a title="Rackspace " href="http://www.csdn.net/tag/rackspace" target="_blank" onclick="LogClickCount(this,336);">Rackspace </a>
<a title="Web App" href="http://www.csdn.net/tag/webapp" target="_blank" onclick="LogClickCount(this,336);">Web App</a>
<a title="SpringSide" href="http://www.csdn.net/tag/springside" target="_blank" onclick="LogClickCount(this,336);">SpringSide</a>
<a title="Maemo" href="http://www.csdn.net/tag/maemo" target="_blank" onclick="LogClickCount(this,336);">Maemo</a>
<a title="Compuware" href="http://www.csdn.net/tag/compuware" target="_blank" onclick="LogClickCount(this,336);">Compuware</a>
<a title="大数据" href="http://www.csdn.net/tag/%E5%A4%A7%E6%95%B0%E6%8D%AE" target="_blank" onclick="LogClickCount(this,336);">大数据</a>
<a title="aptech" href="http://www.csdn.net/tag/aptech" target="_blank" onclick="LogClickCount(this,336);">aptech</a>
<a title="Perl" href="http://www.csdn.net/tag/perl" target="_blank" onclick="LogClickCount(this,336);">Perl</a>
<a title="Tornado" href="http://www.csdn.net/tag/tornado" target="_blank" onclick="LogClickCount(this,336);">Tornado</a>
<a title="Ruby" href="http://www.csdn.net/tag/ruby" target="_blank" onclick="LogClickCount(this,336);">Ruby</a>
<a title="Hibernate" href="http://www.csdn.net/hibernate" target="_blank" onclick="LogClickCount(this,336);">Hibernate</a>
<a title="ThinkPHP" href="http://www.csdn.net/tag/thinkphp" target="_blank" onclick="LogClickCount(this,336);">ThinkPHP</a>
<a title="HBase" href="http://www.csdn.net/tag/hbase" target="_blank" onclick="LogClickCount(this,336);">HBase</a>
<a title="Pure" href="http://www.csdn.net/tag/pure" target="_blank" onclick="LogClickCount(this,336);">Pure</a>
<a title="Solr" href="http://www.csdn.net/tag/solr" target="_blank" onclick="LogClickCount(this,336);">Solr</a>
<a title="Angular" href="http://www.csdn.net/tag/angular" target="_blank" onclick="LogClickCount(this,336);">Angular</a>
<a title="Cloud Foundry" href="http://www.csdn.net/tag/cloudfoundry" target="_blank" onclick="LogClickCount(this,336);">Cloud Foundry</a>
<a title="Redis" href="http://www.csdn.net/tag/redis" target="_blank" onclick="LogClickCount(this,336);">Redis</a>
<a title="Scala" href="http://www.csdn.net/tag/scala" target="_blank" onclick="LogClickCount(this,336);">Scala</a>
<a title="Django" href="http://www.csdn.net/tag/django" target="_blank" onclick="LogClickCount(this,336);">Django</a>
<a title="Bootstrap" href="http://www.csdn.net/tag/bootstrap" target="_blank" onclick="LogClickCount(this,336);">Bootstrap</a>
    </div>
</div>

<div id="pop_win" style="display:none ;position: absolute; z-index: 10000; border: 1px solid rgb(220, 220, 220); top: 222.5px; left: 630px; opacity: 1; background: none 0px 0px repeat scroll rgb(255, 255, 255);">
    
</div>
<div id="popup_mask"></div>
<style>
    #popup_mask
    {
        position: absolute;
        width: 100%;
        height: 100%;
        background: #000;
        z-index: 9999;
        left: 0px;
        top: 0px;
        opacity: 0.3;
        filter: alpha(opacity=30);
        display: none;
    }

</style>




<script type="text/javascript">
    $(function(){
        setTimeout(function(){
            $(".comment_body:contains('回复')").each(function(index,item){
                var u=$(this).text().split('：')[0].toString().replace("回复","")
                var thisComment=$(this);
                if(u)
                {
                    $.getJSON("https://passport.csdn.net/get/nick?callback=?", {users: u}, function(a) {
                        if(a!=null&&a.data!=null&&a.data.length>0)
                        {
                            nick=a.data[0].n; 
                            if(u!=nick)
                            {
                                thisComment.text(thisComment.text().replace(u,nick));  
                            }
                        }       
                    });  
                }
            });
        },200);  
        
        setTimeout(function(){
            $("a img[src='http://js.tongji.linezing.com/stats.gif']").parent().css({"position":"absolute","left":"50%"});
        },300);
    });

    function loginbox(){
        var $logpop=$("#pop_win");
        $logpop.html('<iframe src="https://passport.csdn.net/account/loginbox?service=http://static.blog.csdn.net/callback.htm" frameborder="0" height="600" width="400" scrolling="no"></iframe>');

        $('#popup_mask').css({
            opacity: 0.5,
            width: $( document ).width() + 'px',
            height:  $( document ).height() + 'px'
        });
        $('#popup_mask').css("display","block");
 
        $logpop.css( {
            top: ($( window ).height() - $logpop.height())/ 2  + $( window 
       ).scrollTop() + 'px',
            left:($( window ).width() - $logpop.width())/ 2
        } );
 
        setTimeout( function () {
            $logpop.show();
            $logpop.css( {
                opacity: 1
            } );
        }, 200 );
 
        $('#popup_mask').unbind("click");
        $('#popup_mask').bind("click", function(){
            $('#popup_mask').hide();
            var $clopop = $("#pop_win");
            $("#common_ask_div_sc").css("display","none");
            $clopop.css( {
                opacity: 0
            } );
            setTimeout( function () {
                $clopop.hide();
            }, 350 );
            return false;
        });
    }    

</script>
                        <div class="clear">
                        </div>
                    </div>                   
                
            </div>
            <div id="side">
    <div class="side">
<div id="panel_Profile" class="panel">
<ul class="panel_head"><span>个人资料</span></ul>
<ul class="panel_body profile">
<div id="blog_userface">
    <a href="http://my.csdn.net/hudashi" target="_blank">
    <img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/1_hudashi.jpg" title="访问我的空间" style="max-width:90%">
    </a>
    <br>
    <span><a href="http://my.csdn.net/hudashi" class="user_name" target="_blank">hudashi</a></span>
</div>
<div class="interact">
<a href="javascript:void(0);" class="attent" id="span_add_follow" title="[加关注]" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_guanzhu&#39;])"></a>

 <a href="javascript:void(0);" class="letter" title="[发私信]" onclick="window.open(&#39;http://msg.csdn.net/letters/model?receiver=hudashi&#39;,&#39;_blank&#39;,&#39;height=350,width=700&#39;);_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_sixin&#39;])"></a>  
</div>
<div id="blog_medal">
                         <div class="ico_expert" title="CSDN博客准专家" onclick="javascript:location=&#39;http://blog.csdn.net/experts/rule.html&#39;" style=" cursor:pointer;width:54px;height:60px;background:url(&#39;http://c.csdnimg.cn/jifen/images/xunzhang/xunzhang/bokezhunzhuanjiamiddle.png&#39;) no-repeat"></div>
                <div id="bms_box">
                                            <a target="_blank">
                                                    <img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/chizhiyiheng.png" onmouseover="m_over_m(this,4)" onmouseout="m_out_m()" alt="1">
                                            </a>
               </div>
</div>
<ul id="blog_rank">
    <li>访问：<span>2082911次</span></li>
    <li>积分：<span>20893</span> </li>    
    <li>等级： <span style="position:relative;display:inline-block;z-index:1">
            <img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/blog7.png" alt="" style="vertical-align: middle;" id="leveImg">
            <div id="smallTittle" style=" position: absolute;  left: -24px;  top: 25px;  text-align: center;  width: 101px;  height: 32px;  background-color: #fff;  line-height: 32px;  border: 2px #DDDDDD solid;  box-shadow: 0px 2px 2px rgba (0,0,0,0.1);  display: none;   z-index: 999;">
            <div style="left: 42%;  top: -8px;  position: absolute;  width: 0;  height: 0;  border-left: 10px solid transparent;  border-right: 10px solid transparent;  border-bottom: 8px solid #EAEAEA;"></div>
            积分：20893 </div>
        </span>  </li>
    <li>排名：<span>第162名</span></li>
</ul>
<ul id="blog_statistics">
    <li>原创：<span>226篇</span></li>
    <li>转载：<span>237篇</span></li>
    <li>译文：<span>177篇</span></li>
    <li>评论：<span>233条</span></li>
</ul>
</ul>
</div>


<div class="panel" id="panel_Search">
    <ul class="panel_head"><span>文章搜索</span></ul>
    <ul class="panel_body">
        <form id="frmSearch" action="http://so.csdn.net/search" class="form_search" target="_blank">
        <span><input id="inputSearch" type="text" class="blogsearch" title="请输入关键字"></span>
        <input id="btnSubmit" type="button" value="搜索" title="search in blog">
        <input type="hidden" name="q" id="inputQ">
        <input type="hidden" name="t" value="blog">
        <a id="btnSearchBlog" target="_blank"></a>
        </form>
    </ul>
</div>

<script type="text/javascript">
    $(function () {
        $("#btnSubmit").click(function () {           
            search();
        });

        $("#frmSearch").submit(function () {
            search();
            return false;
        });

        function search()
        {
            var url = "http://so.csdn.net/so/search/s.do?q=" + encodeURIComponent($("#inputSearch").val()) + "&u=" + username + "&t=blog";
            window.location.href = url;
        }   
    });
</script>
<div id="panel_Category" class="panel">
<ul class="panel_head"><span>文章分类</span></ul>
<ul class="panel_body">
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/906906" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">Android基础</a><span>(80)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/926243" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">开发专题</a><span>(34)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/947550" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">深入研究Android</a><span>(33)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/1077167" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">Android的UI开发</a><span>(17)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/906959" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">数据适配器</a><span>(22)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/926189" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">Android绘画</a><span>(9)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/920108" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">Android网络</a><span>(9)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/911171" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">问题小汇</a><span>(24)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/911211" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">电话薄</a><span>(18)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/917599" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">数据持久化存储</a><span>(24)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/938286" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">数据监听</a><span>(4)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/947009" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">Android内存</a><span>(15)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/942612" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">Android调试</a><span>(8)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/926223" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">Android其他</a><span>(23)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/906907" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">JAVA基础</a><span>(18)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/921353" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">JAVA线程相关</a><span>(20)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/921366" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">JAVA集合容器</a><span>(33)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/937307" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">JAVA执行器</a><span>(9)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/950024" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">JAVA虚拟机</a><span>(7)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/947483" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">J2SE</a><span>(2)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/947293" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">J2SE之lib</a><span>(3)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/926353" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">C和C++语言</a><span>(28)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/906917" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">Linux基础</a><span>(32)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/952602" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">Linux内核</a><span>(12)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/906905" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">数学相关</a><span>(5)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/920120" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">网络基础</a><span>(3)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/920334" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">术语</a><span>(8)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/944657" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">DOS批处理</a><span>(25)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/947283" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">工具箱</a><span>(5)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/947286" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">JDK命令</a><span>(7)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/947521" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">我的DOS脚本库</a><span>(4)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/947533" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">工具箱2</a><span>(9)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/950066" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">Linux脚本集</a><span>(1)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/950869" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">数字签名</a><span>(17)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/1097774" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">数据结构</a><span>(3)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/1122124" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">版本控制</a><span>(45)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/1122130" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">数据库</a><span>(2)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/1160910" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">设计模式</a><span>(7)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/1099319" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">JavaScript</a><span>(1)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/906915" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">其他</a><span>(17)</span>
            </li>
             <li>
                <a href="http://blog.csdn.net/hudashi/article/category/1371363" onclick="_gaq.push([&#39;_trackEvent&#39;,&#39;function&#39;, &#39;onclick&#39;, &#39;blog_articles_wenzhangfenlei&#39;]); ">网络编程</a><span>(2)</span>
            </li>
</ul>
</div><div id="panel_Archive" class="panel">
<ul class="panel_head"><span>文章存档</span></ul>
<ul class="panel_body">
<div id="archive_list"><li><a href="http://blog.csdn.net/hudashi/article/month/2015/06">2015年06月</a><span>(2)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2015/04">2015年04月</a><span>(9)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2015/01">2015年01月</a><span>(2)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2014/05">2014年05月</a><span>(6)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2014/04">2014年04月</a><span>(1)</span></li><span class="hidelist" style="display:none;"><li><a href="http://blog.csdn.net/hudashi/article/month/2013/06">2013年06月</a><span>(2)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2013/05">2013年05月</a><span>(1)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2013/03">2013年03月</a><span>(7)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2013/01">2013年01月</a><span>(3)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2012/12">2012年12月</a><span>(7)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2012/11">2012年11月</a><span>(7)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2012/10">2012年10月</a><span>(7)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2012/09">2012年09月</a><span>(8)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2012/08">2012年08月</a><span>(7)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2012/07">2012年07月</a><span>(21)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2012/06">2012年06月</a><span>(45)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2012/05">2012年05月</a><span>(7)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2012/04">2012年04月</a><span>(8)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2012/03">2012年03月</a><span>(33)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2012/02">2012年02月</a><span>(17)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2011/12">2011年12月</a><span>(256)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2011/11">2011年11月</a><span>(97)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2011/10">2011年10月</a><span>(88)</span></li><li><a href="http://blog.csdn.net/hudashi/article/month/2006/12">2006年12月</a><span>(1)</span></li></span><div id="archive_list_button" class="list_closed">展开</div></div>
</ul>
</div>
<div id="hotarticls" class="panel">
<ul class="panel_head">
    <span>       
阅读排行    </span>
</ul>

<ul class="panel_body itemlist">
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7664457" title="Git fetch和git pull的区别">Git fetch和git pull的区别</a><span>(115677)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7664396" title="git clone简介">git clone简介</a><span>(99480)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7797393" title="如何更改linux文件的拥有者及用户组(chown和chgrp)">如何更改linux文件的拥有者及用户组(chown和chgrp)</a><span>(66348)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7664382" title="git merge简介">git merge简介</a><span>(58462)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7664482" title="git checkout简介">git checkout简介</a><span>(57577)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7664464" title="git reset简介">git reset简介</a><span>(55881)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7050897" title="Android中如何查看内存(上)">Android中如何查看内存(上)</a><span>(36667)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7664409" title="git commit简介">git commit简介</a><span>(36123)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7664460" title="git revert和git reset的区别">git revert和git reset的区别</a><span>(33942)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7668798" title="git分支的合并">git分支的合并</a><span>(31951)</span>
</li>
</ul>
</div>
<div id="hotarticls2" class="panel">
<ul class="panel_head"><span>评论排行</span></ul>
<ul class="panel_body itemlist">
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7709421" title="pthread_cond_signal和pthread_cond_wait简介">pthread_cond_signal和pthread_cond_wait简介</a><span>(10)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7664457" title="Git fetch和git pull的区别">Git fetch和git pull的区别</a><span>(10)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7664396" title="git clone简介">git clone简介</a><span>(9)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/25284439" title="Android手机通过wifi进行数据传输（四）">Android手机通过wifi进行数据传输（四）</a><span>(7)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/6929137" title="ContentProvider简介">ContentProvider简介</a><span>(7)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7050897" title="Android中如何查看内存(上)">Android中如何查看内存(上)</a><span>(7)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7709413" title="线程属性pthread_attr_t简介">线程属性pthread_attr_t简介</a><span>(7)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/25283971" title="Android手机通过wifi进行数据传输（二）">Android手机通过wifi进行数据传输（二）</a><span>(6)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7664631" title="git rebase简介(基本篇)">git rebase简介(基本篇)</a><span>(6)</span>
</li>
<li>
<a href="http://blog.csdn.net/hudashi/article/details/7879229" title="关于Android中ANR的一些思考">关于Android中ANR的一些思考</a><span>(6)</span>
</li>
</ul>
</div>
<div id="homepageArticles" class="panel tracking-ad" data-mod="popu_4">
<ul class="panel_head"><span>推荐文章</span></ul>
<ul class="panel_body" id="ad_commend"><iframe id="ad_frm_2" frameborder="0" scrolling="no" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ad.html" style="border-width: 0px; overflow: hidden; width: 183px; height: 200px;"></iframe></ul>
</div>
<script type="text/javascript">
 new Ad(12, 'ad_commend');
</script><div id="newcomments" class="panel">
<ul class="panel_head"><span>最新评论</span></ul>
<ul class="panel_body itemlist">
    <li>
   
         <a href="http://blog.csdn.net/hudashi/article/details/7062914#comments">logcat命令详解</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/Cloud_Huan" class="user_name">Cloud_Huan</a>:
看完了 收获良多 :)
    </p>
    </li>
    <li>
   
         <a href="http://blog.csdn.net/hudashi/article/details/8333349#comments">Android Lint简介</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/Smilelfq" class="user_name">Smilelfq</a>:
学习了
    </p>
    </li>
    <li>
   
         <a href="http://blog.csdn.net/hudashi/article/details/7062675#comments">JVM指令详解（上）</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/shikebing" class="user_name">shikebing</a>:
@nexus_:看看这个http://blog.yemou.net/article/query/in...
    </p>
    </li>
    <li>
   
         <a href="http://blog.csdn.net/hudashi/article/details/7062675#comments">JVM指令详解（上）</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/shikebing" class="user_name">shikebing</a>:
jvm 查看内存 和 监控分析的命令，下面这个文章是我见过最全的，建议看看http://blog.y...
    </p>
    </li>
    <li>
   
         <a href="http://blog.csdn.net/hudashi/article/details/7605128#comments">深入理解fork()</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/u010743187" class="user_name">郑小则</a>:
博主你好：fork之后 程序的代码段是二者共用，还是一人一份copy？这个能测出来吗？
    </p>
    </li>
    <li>
   
         <a href="http://blog.csdn.net/hudashi/article/details/7605128#comments">深入理解fork()</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/u010743187" class="user_name">郑小则</a>:
博主你好，我想问一下：fork之后 程序的代码段俩者共用  还是一人一份copy？这个能测出来吗？
    </p>
    </li>
    <li>
   
         <a href="http://blog.csdn.net/hudashi/article/details/7664457#comments">Git fetch和git pull的区别</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/boise" class="user_name">boise</a>:
实用！ 明白了！ 谢谢！！！
    </p>
    </li>
    <li>
   
         <a href="http://blog.csdn.net/hudashi/article/details/7664457#comments">JVM指令详解（上）</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/nexus_" class="user_name">nexus_</a>:
很厉害  受教了  已关注
    </p>
    </li>
    <li>
   
         <a href="http://blog.csdn.net/hudashi/article/details/7709413#comments">线程属性pthread_attr_t简介</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/xizhilang041" class="user_name">xizhilang041</a>:
学习了。。。。
    </p>
    </li>
    <li>
   
         <a href="http://blog.csdn.net/hudashi/article/details/6958550#comments">JAVA线程的interrupt</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/liang0000zai" class="user_name">liang0000zai</a>:
非常好。。
    </p>
    </li>
</ul>
</div>
    </div>
    <div class="clear">
    </div>
</div>

            <div class="clear">
            </div>
        </div>
        

<script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/cnick.js"></script>
<script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/newblog.min.js"></script>


<script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/showblogmedal.ashx"></script>
<script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/JavaScript1.js"></script><link rel="stylesheet" type="text/css" href="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/pub_footer_2014.css"><div class="pub_fo"><div id="pub_footerall" class="pub_footer_new"><dl><dt></dt> <dd class="foot_sub_menu"><a href="http://www.csdn.net/company/about.html" target="_blank">公司简介</a><span>|</span><a href="http://www.csdn.net/company/recruit.html" target="_blank">招贤纳士</a><span>|</span><a href="http://www.csdn.net/company/marketing.html" target="_blank">广告服务</a><span>|</span><a href="http://www.csdn.net/company/account.html" target="_blank">银行汇款帐号</a><span>|</span><a href="http://www.csdn.net/company/contact.html" target="_blank">联系方式</a><span>|</span><a href="http://www.csdn.net/company/statement.html" target="_blank">版权声明</a><span>|</span><a href="http://www.csdn.net/company/layer.html" target="_blank">法律顾问</a><span>|</span><a href="mailto:webmaster@csdn.net">问题报告</a><span>|</span><a target="_blank" href="http://www.csdn.net/friendlink.html">合作伙伴</a><span>|</span><a href="http://bbs.csdn.net/forums/Service" target="_blank">论坛反馈</a></dd><dd class="foot_contact"><a href="http://wpa.qq.com/msgrd?v=3&uin=2355263776&site=qq&menu=yes" target="_blank" class="qq">网站客服</a><a href="http://wpa.qq.com/msgrd?v=3&uin=2251809102&site=qq&menu=yes" target="_blank" class="qq">杂志客服</a><a href="http://e.weibo.com/csdnsupport/profile" target="_blank" class="weibo">微博客服</a><a href="mailto:webmaster@csdn.net" class="email" title="联系邮箱">webmaster@csdn.net</a><span class="phone" title="服务热线">400-600-2320</span><span class="interval">|</span><span>北京创新乐知信息技术有限公司 版权所有</span><span class="interval">|</span><span>江苏乐知网络技术有限公司 提供商务支持</span></dd><dd class="foot_copyright"><span>京&nbsp;ICP&nbsp;证&nbsp;070598&nbsp;号</span><span class="interval">|</span><span>Copyright © 1999-2014, CSDN.NET, All Rights Reserved&nbsp;</span><a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202001032100010" target="_blank"><img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/gongshang_logos.gif" alt="GongshangLogo" title=""></a></dd></dl></div></div><div id="note1" class="csdn_note" style="display:none; position:absolute; z-index:9999; width:440px">  <span class="notice_top_arrow"><span class="inner"></span></span>  <div class="box"></div></div><div class="csdn_notice_tip" style="display: none; position: absolute; z-index: 9990; width: 170px;">  <iframe src="about:blank" frameborder="0" scrolling="no" style="z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;background:transparent"></iframe>  <div class="tip_text">您有<strong>0</strong>条新通知</div>  <a href="javascript:void 0" class="close2"></a></div><script id="noticeScript" type="text/javascript" btnid="header_notice_num" wrapid="note1" count="5" subcount="5" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/notify.js"></script>

    <script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/login.js"></script>
<script type="text/javascript">document.write("<img src=http://counter.csdn.net/pv.aspx?id=24 border=0 width=0 height=0>");</script><img src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/pv.aspx" border="0" width="0" height="0">
<script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/counter.js"></script><script type="text/javascript" charset="UTF-8" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/msg.popup.js"></script>
<script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ad-blog.js"></script><script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ad-ms1393.js"></script>
<script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ad-ms1395_2.js"></script>

<script type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/count.js"></script><iframe src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/logs.html" frameborder="0" width="0" height="0"></iframe>
<script type="text/javascript">
    $(function () {
        function __get_code_toolbar(snippet_id) {
            return $("<a href='https://code.csdn.net/snippets/"
                    + snippet_id
                    + "' target='_blank' title='在CODE上查看代码片' style='text-indent:0;'><img src='https://code.csdn.net/assets/CODE_ico.png' width=12 height=12 alt='在CODE上查看代码片' style='position:relative;top:1px;left:2px;'/></a>"
                    + "<a href='https://code.csdn.net/snippets/"
                    + snippet_id
                    + "/fork' target='_blank' title='派生到我的代码片'  style='text-indent:0;'><img src='https://code.csdn.net/assets/ico_fork.svg' width=12 height=12 alt='派生到我的代码片' style='position:relative;top:2px;left:2px;'/></a>");
        }
        
        $("[code_snippet_id]").each(function () {
            __s_id = $(this).attr("code_snippet_id");
            if (__s_id != null && __s_id != "" && __s_id != 0 && parseInt(__s_id) > 70020) {
                __code_tool = __get_code_toolbar(__s_id);
                $(this).prev().find(".tools").append(__code_tool);
            }
        });
    });
</script>




    </div><input type="hidden" id="aa_g_data_ids">
      <!--new top-->
    
    <script id="csdn-toolbar-id" btnid="header_notice_num" wrapid="note1" count="5" subcount="5" type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/toolbar.js"></script>
     <!--new top-->
   
    <link href="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ask_float_block.css" type="text/css" rel="stylesheet">
    <script language="JavaScript" type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/wmd.js"></script>
    <script language="JavaScript" type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/showdown.js"></script>
    <script language="JavaScript" type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/prettify.js"></script>
    <script language="JavaScript" type="text/javascript" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ask_float_block.js"></script>



<link rel="stylesheet" type="text/css" media="screen" href="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ask_float_fonts_css-6b30a53970eb5c3a2a045e3df585b475.css"><div data-mod="popu_64" class="tracking-ad" chg-blk="0"><a id="com-appcode-float-block" href="http://www.csdn.net/app/" target="_blank" title="APP二维码" style="top:271px"><span id="appcode-close"></span></a><a id="com-app-float-block" href="http://www.csdn.net/app/" title="APP下载" style="top:355px"></a><a id="com-quick-reply" title="快速回复" style="top:393px"></a><a id="com-d-top-a" style="top: 431px; display: none;" title="返回顶部" onclick=""></a> </div><div class="pop_edit ask_second comm_ask_second"><h3>提问</h3><span class="ask_float_span">您的问题将会被发布在“<a class="ask_float_channel" href="http://ask.csdn.net/" target="_blank" style="cursor:pointer">技术问答</a>”频道</span><a href="http://blog.csdn.net/hudashi/article/details/8333349#" nodetype="close" class="close">×</a><div class="context"><div class="err_div"><span class="err_ico"></span><span class="err_txt">该问题已存在，请勿重复提问</span></div><div class="input_div"><input id="askInputSecond" type="text" style="font-size:14px;" placeholder="问题标题"></div><div class="cm_box"><div class="cm_dialog"></div> <div class="pop_cm cm_add_link"><input type="text" placeholder="链接内容" id="af_cm_link_txt"><input type="text" placeholder="链接地址" id="af_cm_link_url"><input type="text" placeholder="链接提示" id="af_cm_link_tit"><div class="text-right"><span class="btn btn-default btn-sm" id="add_link_btn">插入链接</span> </div> </div><div class="pop_cm cm_add_img"><div class="nav-tabs"><a class="img_tab active" href="http://blog.csdn.net/hudashi/article/details/8333349#tab_upload">本地上传</a><a class="img_tab" href="http://blog.csdn.net/hudashi/article/details/8333349#tab_weburl">网络图片</a></div><div class="tab_panel active" id="tab_upload"><div class="set_img"><iframe src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/upload.html"></iframe></div></div><div class="tab_panel" id="tab_weburl"><input type="text" placeholder="图片地址" id="af_cm_img_url"><input type="text" placeholder="图片说明" id="af_cm_img_alt"><div class="text-right"><span class="btn btn-default btn-sm" id="add_img_btn">插入图片</span> </div></div> </div></div> <textarea id="editor_all" rows="8" style="display: none;"></textarea><div class="editor-toolbar"><i class="separator">|</i><a class="icon-headline" title="标题一（Ctrl+Alt+1）"></a><a class="icon-heading" title="标题二（Ctrl+Alt+2）"></a><a class="icon-bold" title="粗体（Ctrl+B）"></a><a class="icon-italic" title="斜体（Ctrl+I）"></a><i class="separator">|</i><a class="icon-quote-left" title="引用（Ctrl+’）"></a><a class="icon-code" title="插入代码片（Ctrl+,）"></a><a class="icon-list-ul" title="无序列表（Ctrl+L）"></a><a class="icon-list-ol" title="有序列表（Ctrl+Alt+L）"></a><i class="separator">|</i><a class="icon-link" title="添加链接（Ctrl+K）"></a><a class="icon-picture" title="添加图片（Ctrl+Alt+I）"></a><i class="separator">|</i><a class="icon-reply" title="撤退（Ctrl+Z）"></a><a class="icon-share-alt" title="前进（Ctrl+Shift+Z）"></a><i class="separator">|</i><a class="icon-info" href="http://ask.csdn.net/pages/markdown" target="_blank" title="markdown语法参考"></a><a class="icon-preview" title="预览"></a><i class="separator">|</i></div><div class="CodeMirror cm-s-paper CodeMirror-focused"><div style="overflow: hidden; position: relative; width: 3px; height: 0px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; padding: 0px; width: 1000px; height: 1em; outline: none; font-size: 4px;"></textarea></div><div class="CodeMirror-hscrollbar"><div style="height: 1px;"></div></div><div class="CodeMirror-vscrollbar"><div style="width: 1px;"></div></div><div class="CodeMirror-scrollbar-filler"></div><div class="CodeMirror-gutter-filler"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="min-width: 33px;"><div style="position: relative;"><div class="CodeMirror-lines"><div style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre>&nbsp;<span style="display: inline-block; width: 1px; margin-right: -1px;">&nbsp;</span></pre></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code"></div><div class="CodeMirror-cursor" style="visibility: hidden;">&nbsp;</div><div class="CodeMirror-cursor CodeMirror-secondarycursor" style="visibility: hidden;">&nbsp;</div></div></div></div></div><div style="position: absolute; height: 30px; width: 1px;"></div><div class="CodeMirror-gutters" style="display: none;"></div></div></div><div class="editor-statusbar"><span class="lines">0</span><span class="words">0</span><span class="cursor">0:0</span></div><div class="div_tags clearfix"><div id="divSearchTags" class="tags_con"><input type="text"></div><input type="hidden" name="txtSearchTags"></div><div id="ask2_tagRecomm_div" class="drt_tagRecomm tracking-ad" data-mod="popu_73"><span class="drt_tit">推荐标签：</span></div></div><div class="success"><div class="left_area"><input id="chk_cb" type="checkbox"><span class="wyxs">我要悬赏</span><input id="cb_num" class="cb_num" readonly="true"><span class="phib_rii"><span> 币</span></span></div><a href="http://blog.csdn.net/hudashi/article/details/8333349#" nodetype="cancel" class="cancel">取消</a><a href="http://blog.csdn.net/hudashi/article/details/8333349#" nodetype="ok" class="ok">发布</a></div></div><div id="common_ask_div_sc" class="searchContainer"><div class="sTitle">可能存在类似的问题：</div><div class="sFooter"><a class="sFirstNewAsk">我想提一个新问题</a></div></div><iframe src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/cisco-article-innerpage-pip-300-250-30k.html" style="width: 1px; height: 1px; position: absolute; visibility: hidden;"></iframe><iframe src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/ibm-q3-free-cloud-security--hadoop-banner-960-90-30k.html" style="width: 1px; height: 1px; position: absolute; visibility: hidden;"></iframe><style type="text/css" id="xnSmartBarCacheCSSID">

.baiduServiceBottomBar.noDis{display:none !important}.baiduServiceBottomBar.iphoneDevice>ul>li .count{font-size:10px;line-height:12px;height:12px;padding:0px 2px;top:-3px;right:-8px;box-sizing:border-box;font-family:Arial, Helvetica, sans-serif;text-shadow:none;outline:none}.baiduServiceBottomBar.hackIFrame iframe{top:0px;-webkit-transform:translateZ(5px);transform:translateZ(5px)}.baiduServiceBottomBar{overflow:visible;line-height:1;border-top:1px solid #c0c0c0;position:fixed;z-index:10001;width:100%;bottom:0px;background-color:rgba(242,242,242,0.94);background-image:-moz-linear-gradient(rgba(248,248,248,0.94), rgba(242,242,242,0.94));background-image:-o-linear-gradient(rgba(248,248,248,0.94), rgba(242,242,242,0.94));background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(248,248,248,0.94)), color-stop(1, rgba(242,242,242,0.94)));background-image:-webkit-linear-gradient(rgba(248,248,248,0.94), rgba(242,242,242,0.94));background-image:-ms-linear-gradient(rgba(248,248,248,0.94), rgba(242,242,242,0.94));background-image:linear-gradient(rgba(248,248,248,0.94), rgba(242,242,242,0.94))}.baiduServiceBottomBar div{overflow:visible}.baiduServiceBottomBar div,.baiduServiceBottomBar span,.baiduServiceBottomBar object,.baiduServiceBottomBar iframe,.baiduServiceBottomBar h1,.baiduServiceBottomBar h2,.baiduServiceBottomBar h3,.baiduServiceBottomBar h4,.baiduServiceBottomBar h5,.baiduServiceBottomBar h6,.baiduServiceBottomBar p,.baiduServiceBottomBar a,.baiduServiceBottomBar em,.baiduServiceBottomBar img,.baiduServiceBottomBar b,.baiduServiceBottomBar i,.baiduServiceBottomBar dl,.baiduServiceBottomBar dt,.baiduServiceBottomBar dd,.baiduServiceBottomBar ol,.baiduServiceBottomBar ul,.baiduServiceBottomBar li,.baiduServiceBottomBar fieldset,.baiduServiceBottomBar form,.baiduServiceBottomBar label,.baiduServiceBottomBar table,.baiduServiceBottomBar caption,.baiduServiceBottomBar tbody,.baiduServiceBottomBar tfoot,.baiduServiceBottomBar thead,.baiduServiceBottomBar tr,.baiduServiceBottomBar th,.baiduServiceBottomBar td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline}.baiduServiceBottomBar p,.baiduServiceBottomBar div,.baiduServiceBottomBar h1,.baiduServiceBottomBar h2,.baiduServiceBottomBar h3,.baiduServiceBottomBar h4,.baiduServiceBottomBar h5,.baiduServiceBottomBar h6{-webkit-text-size-adjust:none}.baiduServiceBottomBar ul,.baiduServiceBottomBar li,.baiduServiceBottomBar a{vertical-align:middle}.baiduServiceBottomBar ol,.baiduServiceBottomBar ul{list-style:none;overflow:visible}.baiduServiceBottomBar .qingIcon{width:22px;height:22px;background-image:url("");margin:10px auto;background-size:100% 100%}.baiduServiceBottomBar .qingBtn{width:48px;height:48px;background-color:#f8f8f8;border:1px solid #ddd}.baiduServiceBottomBar .qingIcon,.baiduServiceBottomBar .qingBtn{display:block}.baiduServiceBottomBar .baiduServiceBarFullScreanMask{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);-webkit-transform:scale(1);z-index:100000}.baiduServiceBottomBar .baiduServiceBarPopupContainer{position:fixed;z-index:100001;top:50%;left:50%;width:200px;height:225px;border-radius:5px;margin-left:-100px;margin-top:-125px;background:url("") 50% top #f8f8f8 no-repeat;background-size:105px 120px}.baiduServiceBottomBar .baiduServiceBarPopupContainer .baiduServiceBarPopupClose{background-color:rgba(255,255,255,0);background-image:-moz-linear-gradient(#d0d0d0, rgba(255,255,255,0));background-image:-o-linear-gradient(#d0d0d0, rgba(255,255,255,0));background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0, #d0d0d0), color-stop(1, rgba(255,255,255,0)));background-image:-webkit-linear-gradient(#d0d0d0, rgba(255,255,255,0));background-image:-ms-linear-gradient(#d0d0d0, rgba(255,255,255,0));background-image:linear-gradient(#d0d0d0, rgba(255,255,255,0));position:absolute;right:30px;top:0;height:30px;width:1px;display:inline-block}.baiduServiceBottomBar .baiduServiceBarPopupContainer .baiduServiceBarPopupClose:before,.baiduServiceBottomBar .baiduServiceBarPopupContainer .baiduServiceBarPopupClose:after{content:" ";position:absolute;right:-16px;top:7px;width:1px;height:12px;display:inline-block;background:#262626;-webkit-transform:rotateZ(45deg);transform:rotateZ(45deg)}.baiduServiceBottomBar .baiduServiceBarPopupContainer .baiduServiceBarPopupClose:after{-webkit-transform:rotateZ(-45deg);transform:rotateZ(-45deg)}.baiduServiceBottomBar .baiduServiceBarPopupContainer .baiduServiceBarPopupCloseBtn{position:absolute;right:0;top:0;height:30px;width:30px}.baiduServiceBottomBar .baiduServiceBarPopupContainer span{width:100%;text-align:center;display:inline-block;position:absolute;top:125px;font-size:16px;color:#666}.baiduServiceBottomBar .baiduServiceBarPopupContainer .baiduServiceBarPopupInfo{top:150px;font-size:14px}.baiduServiceBottomBar .baiduServiceBarPopupContainer .baiduServiceBarPopupBottomContainer{position:absolute;bottom:0;left:0;width:100%;height:44px;line-height:44px;background:#eee;font-size:16px;color:#262626;border:none;padding:0;border-radius:0 0 5px 5px;border-top:1px solid #d8d8d8}.baiduServiceBottomBar .baiduServiceBarPopupContainer .baiduServiceBarPopupBottomContainer a{float:left;text-align:center;border:none;padding:0px;margin:0;padding-left:15px;display:inline-block;width:50%;height:42px}.baiduServiceBottomBar .baiduServiceBarPopupContainer .baiduServiceBarPopupBottomContainer .baiduServiceBarPopupTel{background:url("") 27% 50% no-repeat;background-size:13px 15px}.baiduServiceBottomBar .baiduServiceBarPopupContainer .baiduServiceBarPopupBottomContainer .baiduServiceBarPopupTel:only-child{background-position:40% 50%;width:100%}.baiduServiceBottomBar .baiduServiceBarPopupContainer .baiduServiceBarPopupBottomContainer .baiduServiceBarPopupConsult{background:url("") 25% 50% no-repeat;background-size:14px 14px}.baiduServiceBottomBar .baiduServiceBarPopupContainer .baiduServiceBarPopupBottomContainer .baiduServiceBarPopupConsult:only-child{background-position:40% 50%;width:100%}.baiduServiceBottomBar .baiduServiceBarPopupContainer .baiduServiceBarPopupBottomContainer .baiduServiceBarPopupTel+.baiduServiceBarPopupConsult{border-left:1px solid #d8d8d8}.baiduServiceBottomBar *{vertical-align:middle;box-sizing:border-box}.baiduServiceBottomBar .baidu-xn-pop-parent{position:relative}.baiduServiceBottomBar .baidu-xn-pop-container{position:absolute;bottom:100%;display:none;z-index:-90;width:113%;background-color:rgba(255,255,255,0.94);background-image:-moz-linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.94));background-image:-o-linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.94));background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(255,255,255,0.94)), color-stop(1, rgba(255,255,255,0.94)));background-image:-webkit-linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.94));background-image:-ms-linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.94));background-image:linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.94));left:initial !important;margin-left:-7px;border:1px solid #c0c0c0;border-radius:2px;box-shadow:0px 0px 4px 1px rgba(0,0,0,0.12);margin-bottom:12px;-webkit-transform:scale(1)}.baiduServiceBottomBar .baidu-xn-pop-container ul,.baiduServiceBottomBar .baidu-xn-pop-container li{list-style:none}.baiduServiceBottomBar .baidu-xn-pop-container ul{padding:0px 9px;height:auto}.baiduServiceBottomBar .baidu-xn-pop-container ul>li:not(:last-of-type){border-bottom:1px solid #dddddd}.baiduServiceBottomBar .baidu-xn-pop-container li.vote{height:43px}.baiduServiceBottomBar .baidu-xn-pop-container ul>li{height:36px}.baiduServiceBottomBar .baidu-xn-pop-container ul>li a{padding:1px 0;font-size:14px}.baiduServiceBottomBar .baidu-xn-pop-container.show,.baiduServiceBottomBar .show>.baidu-xn-pop-container{display:block;z-index:-90}.baiduServiceBottomBar .noDis{display:none !important}.baiduServiceBottomBar a{text-decoration:none;color:#001526}.baiduServiceBottomBar>ul{display:-webkit-box;display:-ms-flexbox;display:-moz-box;display:box;width:100%;list-style-type:none;padding:0px;margin:0px;-webkit-box-pack:center;-webkit-box-align:center;box-pack:center;box-align:center;border:0 #fafafb solid;border-width:1px 0 0 1px}.baiduServiceBottomBar>ul>li{display:block;width:3em;-webkit-box-flex:1;flex:1;-ms-flex:1;-moz-box-flex:1;text-align:center;font-size:10px}.baiduServiceBottomBar>ul>li a{font-size:16px;padding:6px 0px 4px;display:inline-block;display:inline-block;width:100%;line-height:34px;height:43px;text-align:center}.baiduServiceBottomBar>ul>li a p>span.text-char{text-shadow:0 1px #fff}.baiduServiceBottomBar>ul>li .icon{width:18px;height:18px;display:block;margin:0px auto 4px;background-size:100% 100%;vertical-align:middle;position:relative}.baiduServiceBottomBar>ul>li .count-outer{position:relative;width:auto;display:inline-block;line-height:inherit}.baiduServiceBottomBar>ul>li .count{background-color:#f43b3b;color:#fff;border-radius:1px;padding:0px 2px;position:absolute;font-size:10px;line-height:12px;height:12px;top:-3px;right:-10px;font-style:normal;text-shadow:none;outline:none}.baiduServiceBottomBar>ul>li .baidu-xn-pop-container .count{top:3px}.baiduServiceBottomBar>ul li.showMoreBtn{display:none;position:relative}.baiduServiceBottomBar>ul .comment .count{right:-9px}.baiduServiceBottomBar>ul .pop-tip{-webkit-transform:rotateZ(45deg);transform:rotateZ(45deg);width:6px;height:6px;z-index:300;top:-15px;left:-55%;position:absolute;border:1px solid #c0c0c0;background-color:rgba(255,255,255,0.94);display:none}.baiduServiceBottomBar>ul .pop-tip.align-right{margin-left:100%;border-left:0px;border-top:0px}@media only screen and (max-width: 400px){.baiduServiceBottomBar .show-more-buttons>li:nth-of-type(n+4),.baiduServiceBottomBar .show-more-buttons-lg>li:nth-of-type(n+4){display:none}.baiduServiceBottomBar .show-more-buttons>li.showMoreBtn,.baiduServiceBottomBar .show-more-buttons-lg>li.showMoreBtn{display:block}}@media only screen and (min-width: 400px) and (max-width: 480px){.baiduServiceBottomBar .show-more-buttons-lg>li:nth-of-type(n+5){display:none}.baiduServiceBottomBar .show-more-buttons-lg>li.showMoreBtn{display:block}}@media only screen and (max-device-width: 600px){.baiduServiceBottomBar #mobile-phone-detector{display:block}}.baiduServiceBottomBar [data-action=ecomBottomBar-vote]{position:relative}.baiduServiceBottomBar [data-action=ecomBottomBar-vote] .bd_vote{position:absolute;z-index:1;height:100%;width:100%;top:0px}.baiduServiceBottomBar [data-action=ecomBottomBar-vote] .text-char{display:inline-block;-webkit-transform:translateZ(0px);transform:translateZ(0px)}.baiduServiceBottomBar [data-action=ecomBottomBar-vote] .bd_vote iframe{position:relative}.baiduServiceBottomBar>ul>li:last-of-type .baidu-xn-pop-container{right:10px}.baiduServiceBottomBar>ul>li:first-of-type .baidu-xn-pop-container{left:8px !important;margin-left:0px}.baiduServiceBottomBar .baidu-xn-pop-parent:after{position:absolute;top:0px;left:50%;width:12px;height:3px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #c0c0c0;border-left:0px;border-right:0px;margin:6px 0px 6px -6px;content:""}.baiduServiceBottomBar .qingBtn{display:none}.baiduServiceBottomBar.showQingIconStyle.hideContent{border-top:transparent;width:auto}.baiduServiceBottomBar.showQingIconStyle.hideContent .qingBtn{display:block}.baiduServiceBottomBar.showQingIconStyle.hideContent .icon-container{display:none}.baiduServiceBottomBar.showQingIconStyle{display:-webkit-box;display:-ms-flexbox;display:-moz-box;-webkit-box-pack:center;-webkit-box-align:center;box-pack:center;box-align:center}.baiduServiceBottomBar.showQingIconStyle .qingBtn{display:block}.baiduServiceBottomBar.showQingIconStyle>ul>li:first-of-type .baidu-xn-pop-container{left:initial !important;margin-left:-10%}.baiduServiceBottomBar.showQingIconStyle [data-action=ecomBottomBar-showMore]{max-width:50px}.baiduServiceBottomBar.showQingIconStyle [data-action=ecomBottomBar-showMore] .baidu-xn-pop-container{width:180%}.baiduServiceBottomBar.showQingIconStyle [data-action=ecomBottomBar-showMore] .pop-tip.align-right{margin-left:120%}.baiduServiceBottomBar.showQingIconStyle.showContent{width:100%}.baiduServiceBottomBar.showQingIconStyle.showContent .qingBtn{border:1px solid transparent;border-right:1px solid #cdcdcd}.baiduServiceBottomBar.showQingIconStyle.showContent .qingIcon{background-image:url()}.baiduServiceBottomBar.showQingIconStyle.showContent .icon-container{display:-webkit-box;display:-ms-flexbox;display:-moz-box;dislay:box;-webkit-box-flex:1;flex:1;-ms-flex:1;-moz-box-flex:1}.baiduServiceBottomBar.double-scale>ul>li a{line-height:68px;height:86px;font-size:32px;padding:12px 0 4px}.baiduServiceBottomBar.double-scale>ul>li .baidu-xn-pop-container{width:113%}.baiduServiceBottomBar.double-scale>ul>li .baidu-xn-pop-container ul{padding:0px 18px}.baiduServiceBottomBar.double-scale>ul>li .baidu-xn-pop-container ul>li{height:72px;line-height:60px;width:100%}.baiduServiceBottomBar.double-scale>ul>li .baidu-xn-pop-container ul>li a{padding:0px;line-height:72px;height:72px}.baiduServiceBottomBar.double-scale>ul>li .count{font-size:20px;line-height:20px;height:20px;padding:0 6px;top:6px;right:-20px;text-shadow:none;outline:none;border-radius:4px}.baiduServiceBottomBar.double-scale .baidu-xn-pop-parent:after{width:24px;height:6px;margin:12px 0 12px -12px;content:""}@media only screen and (max-width: 800px){.baiduServiceBottomBar.double-scale .show-more-buttons>li:nth-of-type(n+4),.baiduServiceBottomBar.double-scale .show-more-buttons-lg>li:nth-of-type(n+4){display:none}.baiduServiceBottomBar.double-scale .show-more-buttons>li.showMoreBtn,.baiduServiceBottomBar.double-scale .show-more-buttons-lg>li.showMoreBtn{display:block}}@media only screen and (min-width: 800px) and (max-width: 960px){.baiduServiceBottomBar.double-scale .show-more-buttons-lg>li:nth-of-type(n+5){display:none}.baiduServiceBottomBar.double-scale .show-more-buttons-lg>li.showMoreBtn{display:block}}.smb-user-guide-wrapper{position:fixed;z-index:9999;background:rgba(15,15,15,0.8);top:83px;width:238px;height:195px;left:50%;margin-left:-119px;border-radius:10px;font-size:14px;font-family:sans-serif}.smb-user-guide-wrapper .bg-pic{margin-top:24px;height:131px;background:url(//m.baidu.com/static/search/siteapp/lego/use_guide.png) center no-repeat;background-size:208px 131px}.smb-user-guide-wrapper .queryX{position:absolute;left:44px;top:90px}.smb-user-guide-wrapper .closeX{display:block;margin:8px auto;color:#fff;width:110px;height:25px;line-height:25px;text-align:center}.baiduServiceBarPopupShow .baiduServiceBarFullScreanMask,.baiduServiceBarPopupShow .baiduServiceBarPopupContainer{display:block}.baiduServiceBarFullScreanMask,.baiduServiceBarPopupContainer,.baiduServiceBarPopupHideLeft .baiduServiceBarFullScreanMask,.baiduServiceBarPopupHideRight .baiduServiceBarFullScreanMask{display:none}.baiduServiceBarPopupHideLeft .baiduServiceBarPopupContainer,.baiduServiceBarPopupHideRight .baiduServiceBarPopupContainer{animation-duration:1s;-webkit-animation-duration:1s;-webkit-animation-name:fadeOutDownRight;animation-name:fadeOutDownRight;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;transition:All 1s ease-in-out;-webkit-transition:All 1s ease-in-out}.baiduServiceBarPopupHideLeft .baiduServiceBarPopupContainer{-webkit-animation-name:fadeOutDownLeft;animation-name:fadeOutDownLeft}@-webkit-keyframes fadeOutDownLeft{0%{opacity:1}30%{opacity:.8;-webkit-transform:scale3d(0.1, 0.1, 0.1) translate3d(0, 0px, 0);transform:scale3d(0.1, 0.1, 0.1) translate3d(0, 0px, 0)}100%{opacity:0;top:100%;left:5%;-webkit-transform:rotate(45deg) scale3d(0.1, 0.1, 0.1)}}@keyframes fadeOutDownLeft{0%{opacity:1}30%{opacity:.8;-webkit-transform:scale3d(0.1, 0.1, 0.1) translate3d(0, 0px, 0);transform:scale3d(0.1, 0.1, 0.1) translate3d(0, 0px, 0)}100%{opacity:0;top:100%;left:5%;-webkit-transform:rotate(45deg) scale3d(0.1, 0.1, 0.1)}}@-webkit-keyframes fadeOutDownRight{0%{opacity:1}30%{opacity:.8;-webkit-transform:scale3d(0.1, 0.1, 0.1) translate3d(0, 0px, 0);transform:scale3d(0.1, 0.1, 0.1) translate3d(0, 0px, 0)}100%{opacity:0;top:100%;left:95%;-webkit-transform:rotate(-45deg) scale3d(0.1, 0.1, 0.1)}}@keyframes fadeOutDownRight{0%{opacity:1}30%{opacity:.8;-webkit-transform:scale3d(0.1, 0.1, 0.1) translate3d(0, 0px, 0);transform:scale3d(0.1, 0.1, 0.1) translate3d(0, 0px, 0)}100%{opacity:0;top:100%;left:95%;-webkit-transform:rotate(-45deg) scale3d(0.1, 0.1, 0.1)}}.baiduServiceBottomBar-toast-container{position:fixed;z-index:99999999;width:100%;bottom:50px;text-align:center}.baiduServiceBottomBar-toast-container .toast-text{min-width:40%;max-width:80%;overflow:hidden;word-break:break-all;word-wrap:nowrap;text-overflow:ellipsis;background-color:rgba(0,0,0,0.75);opacity:0;-webkit-transition:opacity 2s linear 0s;border-radius:5px;color:#fff;padding:10px;margin:0px auto;font-size:16px}.baiduServiceBottomBar-toast-container.show .toast-text{opacity:1}.baiduServiceBottomBar-toast-container.noDis{display:none !important}body,html{padding:0px;margin:0px}

/**
 * 用于将 css 以内联 js 的形式插入到页面中去
 */
</style><script type="text/javascript" charset="utf-8" src="http://127.0.0.1:7777/getcuid?callback=xnJSONP058979" defer=""></script><div class="baiduServiceBottomBar noDis"><a class="qingBtn" data-action="ecomBottomBar-iconBtn" onclick="javascript:void(0);"><i class="qingIcon"></i></a><ul class="showCount-3 icon-container"><li><a data-action="ecomBottomBar-comment" onclick="javascript:void(0);" class="hackTJMark"><p class="count-outer"><span class="text-char">评价</span><span class="count noDis"></span></p></a></li><li><a data-action="qingBottomBarShare" onclick="javascript:void(0);"><p class="count-outer"><span class="text-char">分享</span><span class="count noDis"></span></p></a></li><li><a data-action="ecomBottomBar-vote" onclick="javascript:void(0);"><p class="count-outer"><span class="text-char">赞</span><span class="count noDis"></span></p><div class="bd_vote" data-inited="1"><iframe id="vote143807667874338" style="border: none; width: 100%; height: 100%; display: block;" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/like.html"></iframe></div></a></li><li class="showMoreBtn baidu-xn-pop-parent" data-action="ecomBottomBar-showMore"><a onclick="javascript:void(0);">更多</a><div class="noDis"><div class="baidu-xn-pop-container"><div class="pop-content"><ul></ul></div></div><div class="pop-tip align-right" style="display: none;"></div></div></li></ul><!-- hack form mobile phone detect --><span id="mobile-phone-detector"></span></div><script type="text/javascript" charset="utf-8" src="./Android Lint简介 - Robin Hu的专栏 - 博客频道 - CSDN.NET_files/vote.js" async=""></script></body></html>